Class HashedSequence<S extends Sequence>
java.lang.Object
org.eclipse.jgit.diff.Sequence
org.eclipse.jgit.diff.HashedSequence<S>
- Type Parameters:
S- the base sequence type.
Wraps a
Sequence to assign hash codes to
elements.
This sequence acts as a proxy for the real sequence, caching element hash
codes so they don't need to be recomputed each time. Sequences of this type
must be used with a HashedSequenceComparator.
To construct an instance of this type use
HashedSequencePair.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
base
-
hashes
final int[] hashes
-
-
Constructor Details
-
HashedSequence
HashedSequence(S base, int[] hashes)
-
-
Method Details
-
size
-