|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.octet.collection.BasicGammaSequenceCollection
A default implementation of the GammaSequenceCollection interface
backed by an ArraySequence.
| Constructor Summary | |
BasicGammaSequenceCollection()
Constructs an empty BasicGammaSequenceCollection. |
|
BasicGammaSequenceCollection(java.util.Collection sequences)
|
|
BasicGammaSequenceCollection(GammaSequence[] sequences)
|
|
| Method Summary | |
boolean |
containsGammaSequence(Atom source,
Atom target)
Returns true if a GammaSequence containing an axis
with source as its source and target as its target
can be found, or false otherwise. |
boolean |
containsGammaSequence(GammaSequence sequence)
Returns true if the specified GammaSequence is contained in this
collection, and false otherwise. |
int |
countGammaSequences()
Returns the number of GammaSequences contained in this collection. |
GammaSequence |
getGammaSequence(Atom source,
Atom target)
Returns the GammaSequence having source and
target axis Atoms. |
GammaSequence |
getGammaSequence(int index)
Returns the GammaSequence located at the specified zero-based index. |
int |
getGammaSequenceIndex(GammaSequence sequence)
Returns the zero-based index of the specified GammaSequence. |
GammaSequenceIterator |
iterateGammaSequences()
Returns an iterator over all GammaSequences in this collection. |
GammaSequence[] |
toGammaSequenceArray()
Returns a copy of the GammaSequences contained in this collection as an array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicGammaSequenceCollection()
BasicGammaSequenceCollection.
public BasicGammaSequenceCollection(GammaSequence[] sequences)
public BasicGammaSequenceCollection(java.util.Collection sequences)
| Method Detail |
public boolean containsGammaSequence(GammaSequence sequence)
GammaSequenceCollectiontrue if the specified GammaSequence is contained in this
collection, and false otherwise.
containsGammaSequence in interface GammaSequenceCollectionsequence - the PaddleWheel
true if contained, false otherwisepublic int countGammaSequences()
GammaSequenceCollectionGammaSequences contained in this collection.
countGammaSequences in interface GammaSequenceCollectionpublic int getGammaSequenceIndex(GammaSequence sequence)
GammaSequenceCollectionGammaSequence.
getGammaSequenceIndex in interface GammaSequenceCollectionsequence - the GammaSequence
sequencepublic GammaSequence getGammaSequence(int index)
GammaSequenceCollectionGammaSequence located at the specified zero-based index.
getGammaSequence in interface GammaSequenceCollectionindex - the index
GammaSequence at index, or null
if the index is invalid
public boolean containsGammaSequence(Atom source,
Atom target)
GammaSequenceCollectiontrue if a GammaSequence containing an axis
with source as its source and target as its target
can be found, or false otherwise.
containsGammaSequence in interface GammaSequenceCollectionsource - the axis source Atomtarget - the axid target Atom
public GammaSequence getGammaSequence(Atom source,
Atom target)
GammaSequenceCollectionGammaSequence having source and
target axis Atoms.
getGammaSequence in interface GammaSequenceCollectionsource - the source Atomtarget - the target Atom
public GammaSequenceIterator iterateGammaSequences()
GammaSequenceCollectionGammaSequences in this collection.
iterateGammaSequences in interface GammaSequenceCollectionGammaSequences in this collectionpublic GammaSequence[] toGammaSequenceArray()
GammaSequenceCollection
toGammaSequenceArray in interface GammaSequenceCollection
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||