|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.octet.collection.BasicAtomGraphCollection
A default implementation of the AtomGraphCollection interface
backed by an ArraySequence.
| Constructor Summary | |
BasicAtomGraphCollection()
Creates an empty SubgraphCollection. |
|
BasicAtomGraphCollection(AtomGraph[] graphs)
Constructs a BasicAtomGraphCollection from the elements contained
in graphs. |
|
BasicAtomGraphCollection(java.util.Collection graphs)
Constructs a BasicAtomGraphCollection from the elements contained
in graphs. |
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicAtomGraphCollection()
SubgraphCollection.
public BasicAtomGraphCollection(java.util.Collection graphs)
BasicAtomGraphCollection from the elements contained
in graphs.
graphs - the collection from which to get AtomGraphs
java.lang.IllegalArgumentException - if graphs contains Objects
that do not implement AtomGraph
java.lang.NullPointerException - if graphs contains nullpublic BasicAtomGraphCollection(AtomGraph[] graphs)
BasicAtomGraphCollection from the elements contained
in graphs.
graphs - the array from which to get AtomGraphs
java.lang.IllegalArgumentException - if graphs contains Objects
that do not implement AtomGraph
java.lang.NullPointerException - if graphs contains null| Method Detail |
public boolean containsAtomGraph(AtomGraph graph)
AtomGraphCollectiontrue if an AtomGraph matching
graph, as determined by Object.equals, is contained
in this collection.
containsAtomGraph in interface AtomGraphCollectiongraph - the AtomGraph to search for
true if found, false otherwisepublic int countAtomGraphs()
AtomGraphCollectionAtomGraphs contained in this collection.
countAtomGraphs in interface AtomGraphCollectionAtomGraphs contained in this collection.public AtomGraph getAtomGraph(int index)
AtomGraphCollectionAtomGraph contained at the specified zero-based
index.
getAtomGraph in interface AtomGraphCollectionindex - the index to search
indexpublic int getAtomGraphIndex(AtomGraph graph)
AtomGraphCollectionAtomGraph as determined
by Object.equals or -1 if no match is found.
getAtomGraphIndex in interface AtomGraphCollectiongraph - the subgraph for which to find an index
graph, or -1 if no match is foundpublic AtomGraphIterator iterateAtomGraphs()
AtomGraphCollectionAtomGraphs in this collection.
iterateAtomGraphs in interface AtomGraphCollectionAtomGraphs in this collectionpublic AtomGraph[] toAtomGraphArray()
AtomGraphCollectionAtomGraphs contained in this collection as an
array. The resulting array may be modified without changing the state
of this collection.
toAtomGraphArray in interface AtomGraphCollection
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||