Top Description Fields Constructors Methods
org.eclipse.jgit.diff

public final Class HashedSequence<S extends Sequence>

extends Sequence
Class Inheritance
Type Parameters
<S>
the base sequence type.

Wraps a org.eclipse.jgit.diff.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 org.eclipse.jgit.diff.HashedSequenceComparator.

To construct an instance of this type use org.eclipse.jgit.diff.HashedSequencePair.

Field Summary

Modifier and TypeField and Description
pack-priv final S
pack-priv final int[]

Constructor Summary

AccessConstructor and Description
pack-priv
HashedSequence(S base, int[] hashes)

Method Summary

Modifier and TypeMethod and Description
public int
size()

Implements abstract org.eclipse.jgit.diff.Sequence.size.

Get size

Field Detail

baseback to summary
pack-priv final S base
hashesback to summary
pack-priv final int[] hashes

Constructor Detail

HashedSequenceback to summary
pack-priv HashedSequence(S base, int[] hashes)

Method Detail

sizeback to summary
public int size()

Implements abstract org.eclipse.jgit.diff.Sequence.size.

Doc from org.eclipse.jgit.diff.Sequence.size.

Get size

Returns:int

size

Annotations
@Override