S - type of seq (type of extending class)public interface Seq<S extends Seq<S>>
Sequence; SequenceQuality; SequenceWithQuality)| Modifier and Type | Method and Description |
|---|---|
S |
concatenate(S other)
Returns a concatenation of this and
other sequence (so this will be followed by other in the
result). |
SeqBuilder<S> |
getBuilder()
Returns a builder for corresponding seq type.
|
S |
getRange(int from,
int to)
Returns a subsequence of this starting at
from (inclusive) and ending at to (exclusive). |
S |
getRange(Range range)
Returns a subsequence of this bounded by specified
range. |
int |
size()
Returns size of this sequence
|
S getRange(Range range)
range.range - a range that defines starting (inclusive) and ending (exclusive) points of subsequencerange.IndexOutOfBoundsException - if from orj to is out of this sequence rangeS getRange(int from, int to)
from (inclusive) and ending at to (exclusive).from - starting point of subsequence (inclusive)to - ending point of subsequence (exclusive)from (inclusive) and ending at to (exclusive)IndexOutOfBoundsException - if from or to is out of this sequence rangeIllegalArgumentException - if from >= toint size()
SeqBuilder<S> getBuilder()
Copyright © 2018. All rights reserved.