|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
AtomGraphCollection is an immutable
group of AtomGraphs. Any AtomGraph may be present, but
null is disallowed.
AtomGraph places the additional restriction on implementors
that all methods are consistent - they can be assumed to return the same results
throughout the AtomGraph's lifetime.
| Method Summary | |
boolean |
containsAtomGraph(AtomGraph graph)
Returns true if an AtomGraph matching
graph, as determined by Object.equals, is contained
in this collection. |
int |
countAtomGraphs()
Returns the number of AtomGraphs contained in this collection. |
AtomGraph |
getAtomGraph(int index)
Returns the AtomGraph contained at the specified zero-based
index. |
int |
getAtomGraphIndex(AtomGraph graph)
Returns the zero-based index of the specified AtomGraph as determined
by Object.equals or -1 if no match is found. |
AtomGraphIterator |
iterateAtomGraphs()
Returns an iterator over all AtomGraphs in this collection. |
AtomGraph[] |
toAtomGraphArray()
Returns a copy of the AtomGraphs contained in this collection as an
array. |
| Method Detail |
public boolean containsAtomGraph(AtomGraph graph)
true if an AtomGraph matching
graph, as determined by Object.equals, is contained
in this collection.
graph - the AtomGraph to search for
true if found, false otherwisepublic int countAtomGraphs()
AtomGraphs contained in this collection.
AtomGraphs contained in this collection.public AtomGraphIterator iterateAtomGraphs()
AtomGraphs in this collection.
AtomGraphs in this collectionpublic int getAtomGraphIndex(AtomGraph graph)
AtomGraph as determined
by Object.equals or -1 if no match is found.
graph - the subgraph for which to find an index
graph, or -1 if no match is foundpublic AtomGraph getAtomGraph(int index)
AtomGraph contained at the specified zero-based
index.
index - the index to search
indexpublic AtomGraph[] toAtomGraphArray()
AtomGraphs 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 | |||||||||