|
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 Nuclei. Any Nucleus may be present, but
null is disallowed.
NucleusCollection 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 NucleusCollection.
| Method Summary | |
boolean |
containsNucleus(Nucleus nucleus)
Returns true if the specified Nucleus is contained in this
collection, and false otherwise. |
int |
countNuclei()
Returns the number of Nuclei contained in this collection. |
Nucleus |
getNucleus(int index)
Returns the isotope located at the specified zero-based index. |
int |
getNucleusIndex(Nucleus nucleus)
Returns the zero-based index of the specified Nucleus. |
NucleusIterator |
iterateNuclei()
Returns an iterator over all Nuclei in this collection. |
Nucleus[] |
toNucleusArray()
Returns a copy of the Nuclei contained in this collection as an
array. |
| Method Detail |
public boolean containsNucleus(Nucleus nucleus)
true if the specified Nucleus is contained in this
collection, and false otherwise.
nucleus - the Nucleus
true if contained, false otherwisepublic int countNuclei()
Nuclei contained in this collection.
public int getNucleusIndex(Nucleus nucleus)
Nucleus.
nucleus - the nucleus
nucleuspublic Nucleus getNucleus(int index)
isotope located at the specified zero-based index.
index - the index
Nucleus 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 Nucleipublic NucleusIterator iterateNuclei()
Nuclei in this collection.
Nuclei in this collectionpublic Nucleus[] toNucleusArray()
Nuclei 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 | |||||||||