net.sf.extjwnl.data.list
Class PointerTargetNodeList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<PointerTargetNode>
net.sf.extjwnl.data.list.PointerTargetNodeList
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<PointerTargetNode>, Collection<PointerTargetNode>, Deque<PointerTargetNode>, List<PointerTargetNode>, Queue<PointerTargetNode>, DeepCloneable
public class PointerTargetNodeList
- extends LinkedList<PointerTargetNode>
- implements DeepCloneable
A 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.
- Author:
- John Didion , Aliaksandr Autayeu
- See Also:
- Serialized Form
Methods inherited from class java.util.LinkedList |
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, toArray, toArray |
PointerTargetNodeList
public PointerTargetNodeList()
PointerTargetNodeList
public PointerTargetNodeList(Collection<? extends PointerTargetNode> c)
PointerTargetNodeList
public PointerTargetNodeList(List<PointerTarget> targets,
PointerType pointerType)
add
public void add(PointerTarget target,
PointerType pointerType)
getNodePrinter
protected NodePrinter<PointerTargetNode> getNodePrinter()
print
public void print()
print
public void print(int indent)
print
public void print(PrintStream stream)
print
public void print(PrintStream stream,
int indent)
print
protected void print(PrintStream stream,
int indent,
int indentIncrement)
toTreeList
public PointerTargetTreeNodeList toTreeList()
- Converts this list to a PointerTargetTreeNodeList.
- Returns:
- PointerTargetTreeNodeList
reverse
public PointerTargetNodeList reverse()
- Reverses the contents of this list. This function creates a copy of
this list and reverses it, so there are no changes made to this list
itself.
- Returns:
- reversed list
clone
public PointerTargetNodeList clone()
- Description copied from interface:
DeepCloneable
- Create a shallow clone of the object.
- Specified by:
clone
in interface DeepCloneable
- Overrides:
clone
in class LinkedList<PointerTargetNode>
deepClone
public PointerTargetNodeList deepClone()
throws CloneNotSupportedException
- Description copied from interface:
DeepCloneable
- Create a deep clone of the object.
- Specified by:
deepClone
in interface DeepCloneable
- Returns:
- a deep clone of the object
- Throws:
CloneNotSupportedException
- CloneNotSupportedException
Copyright © 2011. All Rights Reserved.