public class LatticeCollection
extends java.lang.Object
Constructor and Description |
---|
LatticeCollection()
default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(Lattice lattice)
Add a Lattice to the end of the list
|
Lattice |
get(int i)
Returns the Lattice at the designated index or null Lattice object if no more exists.
|
Lattice |
get(java.lang.String s)
Returns the Lattice object corresponding to the Lattice named
by the string.
|
Lattice |
getElementAt(int i)
Returns the Lattice at the designated index or null Lattice object if no more exists.
|
Lattice |
getLattice(java.lang.String s)
Returns the Lattice object corresponding to the Lattice named
by the string
|
int |
indexOf(java.lang.String s)
Returns the integer index of the Lattice corresponding to the
Lattice named by the string.
|
int |
indexOfName(java.lang.String s)
Returns the integer index value for the Lattice denoted by string.
|
void |
merge(LatticeCollection latticeCollection)
if name exists in both collections, the new one is discarded
|
boolean |
nameExists(java.lang.String s)
Returns true if Lattice named by String is in the list
|
Lattice |
next()
returns the next Lattice object or null Lattice object if no more exists
|
void |
rewind()
Resets the index to beginning of the list
|
int |
size()
Returns the number of elements stored this Lattice collection as an integer
|
java.lang.String |
toString()
for debugging - prints the total number of Lattice collections stored.
|
public Lattice next()
public Lattice getElementAt(int i)
public Lattice get(int i)
public void add(Lattice lattice)
public void rewind()
public int indexOfName(java.lang.String s)
public boolean nameExists(java.lang.String s)
public int indexOf(java.lang.String s)
public Lattice getLattice(java.lang.String s)
public Lattice get(java.lang.String s)
public int size()
public void merge(LatticeCollection latticeCollection)
public java.lang.String toString()
toString
in class java.lang.Object