|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.atom.AtomListWrapper
public class AtomListWrapper
AtomSet formed by wrapping an AtomArrayList. ArrayList can be
| Constructor Summary | |
|---|---|
AtomListWrapper()
Wraps a new atom array of the given length. |
|
AtomListWrapper(AtomArrayList atoms)
Wraps the given atom array. |
|
AtomListWrapper(IAtomList atomSet)
Makes a new instance holding the atoms in the given atom set. |
|
| Method Summary | |
|---|---|
AtomArrayList |
getArrayList()
|
IAtom |
getAtom(int i)
Part of implementation of AtomSet interface. |
int |
getAtomCount()
Returns the length of the wrapped array. |
void |
setAtoms(IAtomList atomSet)
Copies the atoms in the given atom set to the wrapped array of atoms. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtomListWrapper()
public AtomListWrapper(IAtomList atomSet)
public AtomListWrapper(AtomArrayList atoms)
| Method Detail |
|---|
public IAtom getAtom(int i)
getAtom in interface IAtomListpublic AtomArrayList getArrayList()
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 IAtomList
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||