public class PointerTargetNodeList extends java.util.LinkedList<PointerTargetNode> implements DeepCloneable
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.Constructor and Description |
---|
PointerTargetNodeList() |
PointerTargetNodeList(java.util.Collection<? extends PointerTargetNode> c) |
PointerTargetNodeList(java.util.List<PointerTarget> targets,
PointerType pointerType) |
Modifier and Type | Method and Description |
---|---|
void |
add(PointerTarget target,
PointerType pointerType) |
PointerTargetNodeList |
clone()
Create a shallow clone of the object.
|
PointerTargetNodeList |
deepClone()
Create a deep clone of the object.
|
protected NodePrinter<PointerTargetNode> |
getNodePrinter() |
void |
print() |
void |
print(int indent) |
void |
print(java.io.PrintStream stream) |
void |
print(java.io.PrintStream stream,
int indent) |
protected void |
print(java.io.PrintStream stream,
int indent,
int indentIncrement) |
protected static void |
printIndented(java.io.PrintStream stream,
PointerTargetNode node,
int indent) |
PointerTargetNodeList |
reverse()
Reverses the contents of this list.
|
add, add, addAll, addAll, addFirst, addLast, clear, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
public PointerTargetNodeList()
public PointerTargetNodeList(java.util.Collection<? extends PointerTargetNode> c)
public PointerTargetNodeList(java.util.List<PointerTarget> targets, PointerType pointerType)
public void add(PointerTarget target, PointerType pointerType)
protected static void printIndented(java.io.PrintStream stream, PointerTargetNode node, int indent)
protected NodePrinter<PointerTargetNode> getNodePrinter()
public void print()
public void print(int indent)
public void print(java.io.PrintStream stream)
public void print(java.io.PrintStream stream, int indent)
protected void print(java.io.PrintStream stream, int indent, int indentIncrement)
public PointerTargetNodeList reverse()
public PointerTargetNodeList clone()
DeepCloneable
clone
in interface DeepCloneable
clone
in class java.util.LinkedList<PointerTargetNode>
public PointerTargetNodeList deepClone() throws java.lang.CloneNotSupportedException
DeepCloneable
deepClone
in interface DeepCloneable
java.lang.CloneNotSupportedException
- CloneNotSupportedException