public final class Domain extends AbstractList<Node> implements IndexValues
| Constructor and Description |
|---|
Domain(int size)
Initialise this Domain with
size null slots. |
Domain(Node[] value)
Initialise a Domain with a copy of a Node value array.
|
| Modifier and Type | Method and Description |
|---|---|
Domain |
copy() |
boolean |
equals(Object x) |
Node |
get(int i)
Answer the value at
index. |
Node |
getElement(int i) |
void |
setElement(int i,
Node x) |
int |
size() |
String |
toString() |
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArraypublic Domain(Node[] value)
public Domain(int size)
size null slots.public int size()
size in interface Collection<Node>size in interface List<Node>size in class AbstractCollection<Node>public Node get(int i)
IndexValuesindex.get in interface IndexValuesget in interface List<Node>get in class AbstractList<Node>public void setElement(int i,
Node x)
public Node getElement(int i)
public Domain copy()
public boolean equals(Object x)
equals in interface Collection<Node>equals in interface List<Node>equals in class AbstractList<Node>public String toString()
toString in class AbstractCollection<Node>Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP