|
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.BasicHalfPlaneCollection
A default implementation of the HalfPlaneCollection interface backed
by an ArraySequence
| Constructor Summary | |
BasicHalfPlaneCollection()
Constructs an empty BasicHalfPlaneCollection |
|
BasicHalfPlaneCollection(java.util.Collection planes)
Constructs a BasicHalfPlaneCollection from the elements contained
in planes. |
|
BasicHalfPlaneCollection(HalfPlane[] planes)
Constructs a BasicHalfPlaneCollection from the elements contained
in planes. |
|
| Method Summary | |
boolean |
containsHalfPlane(HalfPlane halfPlane)
Returns true if the specified HalfPlane is contained in this
collection, and false otherwise. |
int |
countHalfPlanes()
Returns the number of HalfPlanes contained in this HalfPlane collection. |
HalfPlane |
getHalfPlane(int index)
Returns the HalfPlane located at the specified zero-based index. |
int |
getHalfPlaneIndex(HalfPlane halfPlane)
Returns the zero-based index of the specified Atom. |
HalfPlaneIterator |
iterateHalfPlanes()
Returns an iterator over all HalfPlanes in this collection. |
HalfPlane[] |
toHalfPlaneArray()
Returns a copy of the HalfPlanes 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 BasicHalfPlaneCollection()
BasicHalfPlaneCollection
public BasicHalfPlaneCollection(java.util.Collection planes)
BasicHalfPlaneCollection from the elements contained
in planes.
planes - the collection from which to get HalfPlanes
java.lang.IllegalArgumentException - if planes contains Objects that
do not implement HalfPlane
java.lang.NullPointerException - if planes contains nullpublic BasicHalfPlaneCollection(HalfPlane[] planes)
BasicHalfPlaneCollection from the elements contained
in planes.
planes - the array from which to get HalfPlanes
java.lang.IllegalArgumentException - if planes contains Objects that
do not implement HalfPlane
java.lang.NullPointerException - if planes contains null| Method Detail |
public boolean containsHalfPlane(HalfPlane halfPlane)
HalfPlaneCollectiontrue if the specified HalfPlane is contained in this
collection, and false otherwise.
containsHalfPlane in interface HalfPlaneCollectionhalfPlane - the HalfPlane
true if contained, false otherwisepublic int countHalfPlanes()
HalfPlaneCollectionHalfPlanes contained in this HalfPlane collection.
countHalfPlanes in interface HalfPlaneCollectionpublic int getHalfPlaneIndex(HalfPlane halfPlane)
HalfPlaneCollectionAtom.
getHalfPlaneIndex in interface HalfPlaneCollectionhalfPlane - the halfPlane
halfPlanepublic HalfPlane getHalfPlane(int index)
HalfPlaneCollectionHalfPlane located at the specified zero-based index.
getHalfPlane in interface HalfPlaneCollectionindex - the index
HalfPlane at index, or null
if the index is invalidpublic HalfPlaneIterator iterateHalfPlanes()
HalfPlaneCollectionHalfPlanes in this collection.
iterateHalfPlanes in interface HalfPlaneCollectionHalfPlanes in this collectionpublic HalfPlane[] toHalfPlaneArray()
HalfPlaneCollection
toHalfPlaneArray in interface HalfPlaneCollection
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||