|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ElectronCollection represents an immutable
group of Electrons. Any Electron may be present, but
null is disallowed. Electrons from different
Molecules may or not be present, depending on implementation.
ElectronCollection 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 Electronollection.
| Method Summary | |
boolean |
containsElectron(Electron electron)
Returns true if the specified Electron is contained in this
collection, and false otherwise. |
int |
countElectrons()
Returns the number of Electrons contained in this collection. |
Electron |
getElectron(int index)
Returns the Electron located at the specified zero-based index. |
int |
getElectronIndex(Electron electron)
Returns the zero-based index of the specified Electron. |
ElectronIterator |
iterateElectrons()
Returns an iterator over all Electrons in this collection. |
Electron[] |
toElectronArray()
Returns a copy of the Electrons contained in this collection as an array. |
| Method Detail |
public boolean containsElectron(Electron electron)
true if the specified Electron is contained in this
collection, and false otherwise.
electron - the Electron
true if contained, false otherwisepublic int countElectrons()
Electrons contained in this collection.
public int getElectronIndex(Electron electron)
Electron.
electron - the atom
electronpublic Electron getElectron(int index)
Electron located at the specified zero-based index.
index - the index
Electron 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 Electronspublic ElectronIterator iterateElectrons()
Electrons in this collection.
Electrons in this collectionpublic Electron[] toElectronArray()
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||