|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An immutable
group of Orbitals. Any Orbital may be present, but
null is disallowed. Orbitals from different
Molecules may or not be present, depending on implementation.
OrbitalCollection 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 OrbitalCollection.
| Method Summary | |
boolean |
containsOrbital(Orbital orbital)
Returns true if the specified Orbital is contained in this
collection, and false otherwise. |
int |
countOrbitals()
Returns the number of Orbitals contained in this Orbital collection. |
Orbital |
getOrbital(int index)
Returns the Orbital located at the specified zero-based index. |
int |
getOrbitalIndex(Orbital orbital)
Returns the zero-based index of the specified Orbital. |
OrbitalIterator |
iterateOrbitals()
Returns an iterator over all Orbitals in this collection. |
Orbital[] |
toOrbitalArray()
Returns a copy of the Orbitals contained in this collection as an
array. |
| Method Detail |
public boolean containsOrbital(Orbital orbital)
true if the specified Orbital is contained in this
collection, and false otherwise.
orbital - the Orbital
true if contained, false otherwisepublic int countOrbitals()
Orbitals contained in this Orbital collection.
public int getOrbitalIndex(Orbital orbital)
Orbital.
orbital - the Orbital
orbitalpublic Orbital getOrbital(int index)
Orbital located at the specified zero-based index.
index - the index
Orbital 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 Orbitalspublic OrbitalIterator iterateOrbitals()
Orbitals in this collection.
Orbitals in this collectionpublic Orbital[] toOrbitalArray()
Orbitals contained in this collection as an
array. The resulting array may be modified without changing the state
of this collection.
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||