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, equals, getAccession, getAsList, getBioEnd, getBioStart, getCompoundSet, getInverse, getLength, getSubSequence, getViewedSequence, hashCode, iterator, setBioEnd, setBioStart
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ComplementSequenceView(Sequence<C> sequence)
public String getSequenceAsString()
Sequence
getSequenceAsString
in interface Sequence<C extends ComplementCompound>
getSequenceAsString
in class SequenceProxyView<C extends ComplementCompound>
public C getCompoundAt(int position)
Sequence
getCompoundAt
in interface Sequence<C extends ComplementCompound>
getCompoundAt
in class SequenceProxyView<C extends ComplementCompound>
position
- Biological index (1 to n)public int getIndexOf(C compound)
Sequence
getIndexOf
in interface Sequence<C extends ComplementCompound>
getIndexOf
in class SequenceProxyView<C extends ComplementCompound>
compound
- Compounds to look forpublic int getLastIndexOf(C compound)
Sequence
getLastIndexOf
in interface Sequence<C extends ComplementCompound>
getLastIndexOf
in class SequenceProxyView<C extends ComplementCompound>
compound
- Compounds to look forCopyright © 2000–2018 BioJava. All rights reserved.