C - Must be a subtype of @{link ComplementCompound} since
only those support complementsjava.lang.Iterable<C>, Accessioned, Sequence<C>, SequenceView<C>public class ComplementSequenceView<C extends ComplementCompound> extends SequenceProxyView<C>
| Constructor | Description |
|---|---|
ComplementSequenceView(Sequence<C> sequence) |
| Modifier and Type | Method | Description |
|---|---|---|
C |
getCompoundAt(int position) |
Returns the Compound at the given biological index
|
int |
getIndexOf(C compound) |
Scans through the Sequence looking for the first occurrence of the given
compound
|
int |
getLastIndexOf(C compound) |
Scans through the Sequence looking for the last occurrence of the given
compound
|
java.lang.String |
getSequenceAsString() |
Returns the String representation of the Sequence
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountCompounds, getAccession, getAsList, getBioEnd, getBioStart, getCompoundSet, getInverse, getLength, getSubSequence, getViewedSequence, iterator, setBioEnd, setBioStartpublic java.lang.String getSequenceAsString()
SequencegetSequenceAsString in interface Sequence<C extends ComplementCompound>getSequenceAsString in class SequenceProxyView<C extends ComplementCompound>public C getCompoundAt(int position)
SequencegetCompoundAt in interface Sequence<C extends ComplementCompound>getCompoundAt in class SequenceProxyView<C extends ComplementCompound>position - Biological index (1 to n)public int getIndexOf(C compound)
SequencegetIndexOf in interface Sequence<C extends ComplementCompound>getIndexOf in class SequenceProxyView<C extends ComplementCompound>compound - Compounds to look forpublic int getLastIndexOf(C compound)
SequencegetLastIndexOf in interface Sequence<C extends ComplementCompound>getLastIndexOf in class SequenceProxyView<C extends ComplementCompound>compound - Compounds to look for