org.eclipse.jgit.diff.HashedSequence .
This comparator acts as a proxy for the real comparator, evaluating the
cached hash code before testing the underlying comparator's equality.
Comparators of this type must be used with a
org..
To construct an instance of this type use
org..
| Modifier and Type | Field and Description |
|---|---|
| private final SequenceComparator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(HashedSequence<S>
the first sequence. a, int item of ai, HashedSequence<S> ai to compare.the second sequence. b, int item of bi)bi to compare.Implements abstract org. Compare two items to determine if they are equivalent. |
| public int | hash(HashedSequence<S>
the sequence. seq, int the item to obtain the hash for. ptr)Implements abstract org. Get a hash value for an item in a sequence. |
| cmp | back to summary |
|---|---|
| private final SequenceComparator<? super S> cmp | |
| HashedSequenceComparator | back to summary |
|---|---|
| pack-priv HashedSequenceComparator(SequenceComparator<? super S> cmp) | |
| equals | back to summary |
|---|---|
| public boolean equals(HashedSequence<S> a, int ai, HashedSequence<S> b, int bi) Implements abstract org. Doc from org. Compare two items to determine if they are equivalent.
It is permissible to compare sequence
| |
| hash | back to summary |
|---|---|
| public int hash(HashedSequence<S> seq, int ptr) Implements abstract org. Doc from org. Get a hash value for an item in a sequence.
If two items are equal according to this comparator's
| |