|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SequenceComparator<S extends Sequence>
Equivalence function for a Sequence
.
Method Summary | |
---|---|
boolean |
equals(S a,
int ai,
S b,
int bi)
Compare two items to determine if they are equivalent. |
int |
hash(S seq,
int i)
Get a hash value for an item in a sequence. |
Method Detail |
---|
boolean equals(S a, int ai, S b, int bi)
int hash(S seq, int i)
equals(Sequence, int, Sequence, int)
method,
then this hash method must produce the same integer result for both items.
However not required to have different hash values for different items.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |