Class HashedSequencePair<S extends Sequence>
java.lang.Object
org.eclipse.jgit.diff.HashedSequencePair<S>
- Type Parameters:
S- the base sequence type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Sprivate final Sprivate HashedSequence<S> private HashedSequence<S> private final SequenceComparator<? super S> -
Constructor Summary
ConstructorsConstructorDescriptionHashedSequencePair(SequenceComparator<? super S> cmp, S a, S b) Construct a pair to provide fast hash codes. -
Method Summary
Modifier and TypeMethodDescriptiongetA()Get AgetB()Get BGet comparatorprivate HashedSequence<S>
-
Field Details
-
cmp
-
baseA
-
baseB
-
cachedA
-
cachedB
-
-
Constructor Details
-
HashedSequencePair
Construct a pair to provide fast hash codes.- Parameters:
cmp- the base comparator for the sequence elements.a- the A sequence.b- the B sequence.
-
-
Method Details
-
getComparator
Get comparator- Returns:
- obtain a comparator that uses the cached hash codes
-
getA
-
getB
-
wrap
-