|
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.BasicAtomPairCollection
A default implementation of the AtomPairCollection interface
backed by an ArraySequence.
| Constructor Summary | |
BasicAtomPairCollection()
Constructs an empty, fully functional BasicAtomPairCollection. |
|
BasicAtomPairCollection(AtomPair[] pairs)
Constructs a BasicAtomPairCollection from the elements contained
in pairs. |
|
BasicAtomPairCollection(java.util.Collection pairs)
Constructs a BasicAtomPairCollection from the elements contained
in pairs. |
|
| Method Summary | |
boolean |
containsAtomPair(Atom source,
Atom target)
Returns true if an AtomPair connecting
source and target is contained in this
collection. |
boolean |
containsAtomPair(AtomPair pair)
Returns true if an AtomPair matching
pair is contained in this collection. |
int |
countAtomPairs()
Returns the number of AtomPairs contained in this collection. |
AtomPair |
getAtomPair(Atom source,
Atom target)
Returns an AtomPair containing the specified source
and target Atoms. |
AtomPair |
getAtomPair(int index)
Returns the AtomPair corresponding to the specified integer index. |
int |
getAtomPairIndex(AtomPair pair)
Returns the index of the specified AtomPair. |
AtomPairIterator |
iterateAtomPairs()
Returns an iterator over all AtomPairs in this collection. |
AtomPair[] |
toAtomPairArray()
Returns a copy of the atom pairs 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 BasicAtomPairCollection()
BasicAtomPairCollection.
public BasicAtomPairCollection(java.util.Collection pairs)
BasicAtomPairCollection from the elements contained
in pairs.
pairs - the collection from which to get AtomPairs
java.lang.IllegalArgumentException - if pairs contains Objects that
do not implement AtomPair
java.lang.NullPointerException - if pairs contains nullpublic BasicAtomPairCollection(AtomPair[] pairs)
BasicAtomPairCollection from the elements contained
in pairs.
pairs - the array from which to get AtomPairs
java.lang.IllegalArgumentException - if pairs contains Objects that
do not implement AtomPair
java.lang.NullPointerException - if pairs contains null| Method Detail |
public boolean containsAtomPair(AtomPair pair)
AtomPairCollectiontrue if an AtomPair matching
pair is contained in this collection.
containsAtomPair in interface AtomPairCollectionpair - the AtomPair to search for
true if found, false otherwise
public boolean containsAtomPair(Atom source,
Atom target)
AtomPairCollectiontrue if an AtomPair connecting
source and target is contained in this
collection.
containsAtomPair in interface AtomPairCollectionsource - the source atomtarget - the target atom
true if the atom pair exists, false otherwise
public AtomPair getAtomPair(Atom source,
Atom target)
AtomPairCollectionAtomPair containing the specified source
and target Atoms. If no such pair is found,
null is returned.
getAtomPair in interface AtomPairCollectionsource - the source atomtarget - the target atom
AtomPairpublic int countAtomPairs()
AtomPairCollectionAtomPairs contained in this collection.
countAtomPairs in interface AtomPairCollectionAtomPairs contained in this collection.public AtomPairIterator iterateAtomPairs()
AtomPairCollectionAtomPairs in this collection.
iterateAtomPairs in interface AtomPairCollectionAtomPairs in this collectionpublic AtomPair getAtomPair(int index)
AtomPairCollectionAtomPair corresponding to the specified integer index.
getAtomPair in interface AtomPairCollectionindex - the index to search for
AtomPair at the specified indexpublic int getAtomPairIndex(AtomPair pair)
AtomPairCollectionAtomPair.
getAtomPairIndex in interface AtomPairCollectionpair - the AtomPair to search for
AtomPairpublic AtomPair[] toAtomPairArray()
AtomPairCollection
toAtomPairArray in interface AtomPairCollection
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||