Package org.eclipse.jgit.diff
Class HashedSequencePair<S extends Sequence>
- java.lang.Object
-
- org.eclipse.jgit.diff.HashedSequencePair<S>
-
-
Constructor Summary
Constructors Constructor Description HashedSequencePair(SequenceComparator<? super S> cmp, S a, S b)Construct a pair to provide fast hash codes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HashedSequence<S>getA()Get AHashedSequence<S>getB()Get BHashedSequenceComparator<S>getComparator()Get comparator
-
-
-
Constructor Detail
-
HashedSequencePair
public HashedSequencePair(SequenceComparator<? super S> cmp, S a, S b)
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 Detail
-
getComparator
public HashedSequenceComparator<S> getComparator()
Get comparator- Returns:
- obtain a comparator that uses the cached hash codes
-
getA
public HashedSequence<S> getA()
Get A- Returns:
- wrapper around A that includes cached hash codes
-
getB
public HashedSequence<S> getB()
Get B- Returns:
- wrapper around B that includes cached hash codes
-
-