|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
AtomCollection represents an immutable
group of Atoms. Any Atom may be present, but
null is disallowed. Atoms from different
Molecules may or not be present, depending on implementation.
AtomCollection places the additional restriction on implementors
that all methods are consistent - they can be assumed to return the same results
throughout the lifetime of the AtomCollection.
| Method Summary | |
boolean |
containsAtom(Atom atom)
Returns true if the specified Atom is contained in this
collection, and false otherwise. |
int |
countAtoms()
Returns the number of Atoms contained in this atom collection. |
Atom |
getAtom(int index)
Returns the Atom located at the specified zero-based index. |
int |
getAtomIndex(Atom atom)
Returns the zero-based index of the specified Atom. |
AtomIterator |
iterateAtoms()
Returns an iterator over all Atoms in this collection. |
Atom[] |
toAtomArray()
Returns a copy of the Atoms contained in this collection as an array. |
| Method Detail |
public boolean containsAtom(Atom atom)
true if the specified Atom is contained in this
collection, and false otherwise.
atom - the Atom
true if contained, false otherwisepublic int countAtoms()
Atoms contained in this atom collection.
public int getAtomIndex(Atom atom)
Atom.
atom - the atom
atompublic Atom getAtom(int index)
Atom located at the specified zero-based index.
index - the index
Atom at index, or null
if the index is invalid
java.lang.IndexOutOfBoundsException - if index is less than zero
or greater than or equal to the number of Atomspublic AtomIterator iterateAtoms()
Atoms in this collection.
Atoms in this collectionpublic Atom[] toAtomArray()
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||