|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.atom.AtomsetArray
public class AtomsetArray
AtomSet formed by wrapping an Atom array. Size of array cannot be changed after construction.
| Constructor Summary | |
|---|---|
AtomsetArray(AtomsetArray atomSet)
Copy constructor, wrapping a new array unique to this instance but holding the same atoms as the given atom set. |
|
AtomsetArray(IAtom[] atoms)
Wraps the given atom array. |
|
AtomsetArray(IAtomList atomSet)
Makes a new instance holding the atoms in the given atom set. |
|
AtomsetArray(int nAtoms)
Wraps a new atom array of the given length. |
|
| Method Summary | |
|---|---|
IAtom[] |
getArray()
|
IAtom |
getAtom(int i)
Part of implementation of AtomSet interface. |
int |
getAtomCount()
Returns the length of the wrapped array. |
void |
setAtoms(IAtom[] newAtoms)
Copies the atoms in the given array to the wrapped, final array of atoms. |
void |
setAtoms(IAtomList atomSet)
Copies the atoms in the given atom set to the wrapped array of atoms. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AtomsetArray(int nAtoms)
public AtomsetArray(IAtomList atomSet)
public AtomsetArray(AtomsetArray atomSet)
NullPointerException - if argument is nullpublic AtomsetArray(IAtom[] atoms)
| Method Detail |
|---|
public IAtom getAtom(int i)
getAtom in interface IAtomListpublic IAtom[] getArray()
public void setAtoms(IAtom[] newAtoms)
IllegalArgumentException - if length of array is not equal to count field of this
instance.
NullPointerException - if argument is null.public void setAtoms(IAtomList atomSet)
IllegalArgumentException - if length of array is not equal to count field of this
instance.
NullPointerException - if argument is nullpublic int getAtomCount()
getAtomCount in interface IAtomListpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||