C - Must be a subtype of @{link ComplementCompound} since
only those support complementspublic class ComplementSequenceView<C extends ComplementCompound> extends SequenceProxyView<C>
| Constructor and Description |
|---|
ComplementSequenceView(Sequence<C> sequence) |
| Modifier and Type | Method and 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
|
String |
getSequenceAsString()
Returns the String representation of the Sequence
|
countCompounds, getAccession, getAsList, getBioEnd, getBioStart, getCompoundSet, getInverse, getLength, getSubSequence, getViewedSequence, iterator, setBioEnd, setBioStartclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ComplementSequenceView(Sequence<C> sequence)
public 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 forCopyright © 2000–2017 BioJava. All rights reserved.