org.eclipse.jgit.diff.Subsequence .
This comparator acts as a proxy for the real comparator, translating element
indexes on the fly by adding the subsequence's begin offset to them.
Comparators of this type must be used with a
org..
| Modifier and Type | Field and Description |
|---|---|
| private final SequenceComparator |
| Access | Constructor and Description |
|---|---|
| public | SubsequenceComparator(SequenceComparator<? super S>
the real comparator. cmp)Construct a comparator wrapping another comparator. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Subsequence<S>
the first sequence. a, int item of ai, Subsequence<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(Subsequence<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 | |
| SubsequenceComparator | back to summary |
|---|---|
| public SubsequenceComparator(SequenceComparator<? super S> cmp) Construct a comparator wrapping another comparator.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Subsequence<S> a, int ai, Subsequence<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(Subsequence<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
| |