org.eclipse.jgit.diff.Sequence to have a narrower range of
elements.
This sequence acts as a proxy for the real sequence, translating element
indexes on the fly by adding begin to them. Sequences of this type
must be used with a org..
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final S | |
| pack-priv final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | Subsequence(S
the real sequence. base, int First element index of begin, int base that will be part of this
new subsequence. The element at begin will be this
sequence's element 0.One past the last element index of end)base that will be
part of this new subsequence.Construct a subset of another sequence. |
| Modifier and Type | Method and Description |
|---|---|
| public static < type of returned Sequence S extends Sequence> Subsequence | |
| public static < type of returned Sequence S extends Sequence> Subsequence | |
| public int | |
| public static < type of returned Sequence S extends Sequence> void | toBase(Edit
edit to adjust in-place. Prior to invocation the indexes are
in terms of the two subsequences; after invocation the indexes
are in terms of the base sequences. e, Subsequence<S> the A sequence. a, Subsequence<S> the B sequence. b)Adjust the Edit to reflect positions in the base sequence. |
| public static < type of returned Sequence S extends Sequence> EditList | Returns: alwaysedits (as the list was updated in-place).edits to adjust in-place. Prior to invocation the indexes are
in terms of the two subsequences; after invocation the indexes
are in terms of the base sequences. edits, Subsequence<S> the A sequence. a, Subsequence<S> the B sequence. b)Adjust the Edits to reflect positions in the base sequence. |
| base | back to summary |
|---|---|
| pack-priv final S base | |
| begin | back to summary |
|---|---|
| pack-priv final int begin | |
| size | back to summary |
|---|---|
| private final int size | |
| Subsequence | back to summary |
|---|---|
| public Subsequence(S base, int begin, int end) Construct a subset of another sequence.
The size of the subsequence will be
| |
| a | back to summary |
|---|---|
| public static <S extends Sequence> Subsequence Construct a subsequence around the A region/base sequence.
| |
| b | back to summary |
|---|---|
| public static <S extends Sequence> Subsequence Construct a subsequence around the B region/base sequence.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract org. Doc from org. Get size
| |
| toBase | back to summary |
|---|---|
| public static <S extends Sequence> void toBase(Edit e, Subsequence<S> a, Subsequence<S> b) Adjust the Edit to reflect positions in the base sequence.
| |
| toBase | back to summary |
|---|---|
| public static <S extends Sequence> EditList toBase(EditList edits, Subsequence<S> a, Subsequence<S> b) Adjust the Edits to reflect positions in the base sequence.
| |