added hashCode()

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@937 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
asivache 2009-06-08 16:52:02 +00:00
parent b4ef16ced2
commit ce431b5d2d
1 changed files with 6 additions and 0 deletions

View File

@ -481,6 +481,12 @@ public class GenomeLoc implements Comparable<GenomeLoc>, Cloneable {
}
return false;
}
@Override
public int hashCode() {
return (int)( start << 16 + stop << 4 + contigIndex );
}
/**
* Return a new GenomeLoc at this same position.