|
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.BasicAtomicSymbolCollection
A default implementation of the AtomicSymbolCollection interface backed
by an ArraySequence.
| Constructor Summary | |
BasicAtomicSymbolCollection()
Constructs a fully functional and empty BasicAtomicSymbolCollection. |
|
BasicAtomicSymbolCollection(AtomicSymbol[] symbols)
Constructs a BasicAtomicSymbolCollection from the elements contained
in symbols. |
|
BasicAtomicSymbolCollection(java.util.Collection symbols)
Constructs a BasicAtomicSymbolCollection from the elements contained
in symbols. |
|
| Method Summary | |
boolean |
containsAtomicSymbol(AtomicSymbol symbol)
Returns true if the specified AtomicSymbol is contained in this
collection, and false otherwise. |
int |
countAtomicSymbols()
Returns the number of AtomicSymbols contained in this collection. |
AtomicSymbol |
getAtomicSymbol(int index)
Returns the AtomicSymbol located at the specified zero-based index. |
int |
getAtomicSymbolIndex(AtomicSymbol symbol)
Returns the zero-based index of the specified AtomicSymbol. |
AtomicSymbolIterator |
iterateAtomicSymbols()
Returns an iterator over all AtomicSymbols in this collection. |
AtomicSymbol[] |
toAtomicSymbolArray()
Returns a copy of the AtomicSymbols 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 BasicAtomicSymbolCollection()
BasicAtomicSymbolCollection.
public BasicAtomicSymbolCollection(java.util.Collection symbols)
BasicAtomicSymbolCollection from the elements contained
in symbols.
symbols - the collection from which to get AtomicSymbols
java.lang.IllegalArgumentException - if symbols contains Objects that
do not implement AtomicSymbol
java.lang.NullPointerException - if symbols contains nullpublic BasicAtomicSymbolCollection(AtomicSymbol[] symbols)
BasicAtomicSymbolCollection from the elements contained
in symbols.
symbols - the array from which to get AtomicSymbols
java.lang.IllegalArgumentException - if symbols contains Objects that
do not implement AtomicAymbol
java.lang.NullPointerException - if symbols contains null| Method Detail |
public boolean containsAtomicSymbol(AtomicSymbol symbol)
AtomicSymbolCollectiontrue if the specified AtomicSymbol is contained in this
collection, and false otherwise.
containsAtomicSymbol in interface AtomicSymbolCollectionsymbol - the AtomicSymbol
true if contained, false otherwisepublic int countAtomicSymbols()
AtomicSymbolCollectionAtomicSymbols contained in this collection.
countAtomicSymbols in interface AtomicSymbolCollectionpublic int getAtomicSymbolIndex(AtomicSymbol symbol)
AtomicSymbolCollectionAtomicSymbol.
getAtomicSymbolIndex in interface AtomicSymbolCollectionsymbol - the AtomicSymbol
symbolpublic AtomicSymbol getAtomicSymbol(int index)
AtomicSymbolCollectionAtomicSymbol located at the specified zero-based index.
getAtomicSymbol in interface AtomicSymbolCollectionindex - the index
AtomicSymbol at index, or null
if the index is invalidpublic AtomicSymbolIterator iterateAtomicSymbols()
AtomicSymbolCollectionAtomicSymbols in this collection.
iterateAtomicSymbols in interface AtomicSymbolCollectionAtomicSymbols in this collectionpublic AtomicSymbol[] toAtomicSymbolArray()
AtomicSymbolCollection
toAtomicSymbolArray in interface AtomicSymbolCollection
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||