|
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.BasicBondingSystemCollection
A default implementation of the BondingSystemCollection interface
backed by an ArraySequence.
| Constructor Summary | |
BasicBondingSystemCollection()
Constructs an empty, fully functional BasicBondingSystemCollection. |
|
BasicBondingSystemCollection(BondingSystem[] systems)
Constructs a BasicBondingSystemCollection from the elements contained
in systems. |
|
BasicBondingSystemCollection(java.util.Collection systems)
Constructs a BasicBondingSystemCollection from the elements contained
in systems. |
|
| Method Summary | |
boolean |
containsBondingSystem(BondingSystem system)
Returns true if a BondingSystem matching
system is contained in this collection. |
int |
countBondingSystems()
Returns the number of BondingSystems contained in this collection. |
int |
countBondingSystems(Atom atom)
Returns the number of BondingSystems in this collection in which
atom participates. |
BondingSystem |
getBondingSystem(int index)
Returns the BondingSystem located at the specified zero-based index. |
int |
getBondingSystemIndex(BondingSystem system)
Returns the zero-based index of the specified BondingSystem. |
BondingSystemIterator |
iterateBondingSystems()
Returns an iterator over all BondingSystems in this collection. |
BondingSystemIterator |
iterateBondingSystems(Atom atom)
Returns an iterator over all BondingSystems in which
atom participates. |
BondingSystem[] |
toBondingSystemArray()
Returns a copy of the bonding systems 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 BasicBondingSystemCollection()
BasicBondingSystemCollection.
public BasicBondingSystemCollection(java.util.Collection systems)
BasicBondingSystemCollection from the elements contained
in systems.
systems - the collection from which to get BondingSystems
java.lang.IllegalArgumentException - if systems contains Objects that
do not implement BondingSystem
java.lang.NullPointerException - if systems contains nullpublic BasicBondingSystemCollection(BondingSystem[] systems)
BasicBondingSystemCollection from the elements contained
in systems.
systems - the array from which to get BondingSystems
java.lang.IllegalArgumentException - if systems contains Objects that
do not implement BondingSystem
java.lang.NullPointerException - if systems contains null| Method Detail |
public int countBondingSystems(Atom atom)
BondingSystemCollectionBondingSystems in this collection in which
atom participates.
countBondingSystems in interface BondingSystemCollectionatom - the Atom
BondingSystems in this collection in which
atom participatespublic BondingSystemIterator iterateBondingSystems(Atom atom)
BondingSystemCollectionBondingSystems in which
atom participates.
iterateBondingSystems in interface BondingSystemCollectionatom - the Atom
BondingSystems in which
atom participatespublic boolean containsBondingSystem(BondingSystem system)
BondingSystemCollectiontrue if a BondingSystem matching
system is contained in this collection.
containsBondingSystem in interface BondingSystemCollectionsystem - the BondingSystem to search for
true if found, false otherwisepublic int countBondingSystems()
BondingSystemCollectionBondingSystems contained in this collection.
countBondingSystems in interface BondingSystemCollectionBondingSystems contained in this collection.public BondingSystemIterator iterateBondingSystems()
BondingSystemCollectionBondingSystems in this collection.
iterateBondingSystems in interface BondingSystemCollectionBondingSystems in this collectionpublic BondingSystem getBondingSystem(int index)
BondingSystemCollectionBondingSystem located at the specified zero-based index.
getBondingSystem in interface BondingSystemCollectionindex - the index
BondingSystem at indexpublic int getBondingSystemIndex(BondingSystem system)
BondingSystemCollectionBondingSystem.
getBondingSystemIndex in interface BondingSystemCollectionsystem - the BondingSystem
systempublic BondingSystem[] toBondingSystemArray()
BondingSystemCollection
toBondingSystemArray in interface BondingSystemCollection
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||