Top Description Constructors Methods
org.eclipse.jgit.diff

public abstract Class Sequence

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.diff.Subsequence, org.eclipse.jgit.submodule.SubmoduleConflict, org.eclipse.jgit.diff.HashedSequence, org.eclipse.jgit.diff.RawText

Arbitrary sequence of elements.

A sequence of elements is defined to contain elements in the index range [0, size()), like a standard Java List implementation. Unlike a List, the members of the sequence are not directly obtainable.

Implementations of Sequence are primarily intended for use in content difference detection algorithms, to produce an org.eclipse.jgit.diff.EditList of org.eclipse.jgit.diff.Edit instances describing how two Sequence instances differ.

To be compared against another Sequence of the same type, a supporting org.eclipse.jgit.diff.SequenceComparator must also be supplied.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract int

Returns:

size
size
()

Get size

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Sequenceback to summary
public Sequence()

Method Detail

sizeback to summary
public abstract int size()

Get size

Returns:int

size