public class PointerTargetNodeList extends TypeCheckingList
PointerTargetNodeList
holds the results of a relationship method.
Each node contains a PointerTarget
(a synset or word) and the type of
relationship that the node has to the other elements in the list and/or to
the source word.TypeCheckingList.TypeCheckingListIterator
Constructor and Description |
---|
PointerTargetNodeList() |
PointerTargetNodeList(LinkedList list) |
PointerTargetNodeList(PointerTarget[] targets) |
Modifier and Type | Method and Description |
---|---|
void |
add(PointerTarget target) |
void |
add(PointerTarget target,
PointerType type) |
Object |
clone()
Create a shallow clone of the object
|
Object |
deepClone()
Create a deep clone of the object
|
void |
print() |
void |
print(int indent) |
void |
print(PrintStream stream) |
void |
print(PrintStream stream,
int indent) |
PointerTargetNodeList |
reverse()
Reverse the contents of this list.
|
PointerTargetTreeNodeList |
toTreeList()
Convert this list to a PointerTargetTreeNodeList.
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, getType, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
public PointerTargetNodeList()
public PointerTargetNodeList(LinkedList list)
public PointerTargetNodeList(PointerTarget[] targets)
public void add(PointerTarget target)
public void add(PointerTarget target, PointerType type)
public void print()
public void print(int indent)
public void print(PrintStream stream)
public void print(PrintStream stream, int indent)
public PointerTargetTreeNodeList toTreeList()
public PointerTargetNodeList reverse()
public Object clone() throws CloneNotSupportedException
DeepCloneable
clone
in interface DeepCloneable
clone
in class TypeCheckingList
CloneNotSupportedException
public Object deepClone() throws UnsupportedOperationException
DeepCloneable
deepClone
in interface DeepCloneable
deepClone
in class TypeCheckingList
UnsupportedOperationException