net.didion.jwnl.data.list
Class PointerTargetNodeList
java.lang.Object
net.didion.jwnl.util.TypeCheckingList
net.didion.jwnl.data.list.PointerTargetNodeList
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, DeepCloneable
- Direct Known Subclasses:
- PointerTargetTreeNodeList
public class PointerTargetNodeList
- extends TypeCheckingList
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.
Methods inherited from class net.didion.jwnl.util.TypeCheckingList |
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 |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
hashCode |
PointerTargetNodeList
public PointerTargetNodeList()
PointerTargetNodeList
public PointerTargetNodeList(java.util.LinkedList list)
PointerTargetNodeList
public PointerTargetNodeList(PointerTarget[] targets)
add
public void add(PointerTarget target)
add
public void add(PointerTarget target,
PointerType type)
print
public void print()
print
public void print(int indent)
print
public void print(java.io.PrintStream stream)
print
public void print(java.io.PrintStream stream,
int indent)
toTreeList
public PointerTargetTreeNodeList toTreeList()
- Convert this list to a PointerTargetTreeNodeList.
reverse
public PointerTargetNodeList reverse()
- Reverse 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.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Description copied from interface:
DeepCloneable
- Create a shallow clone of the object
- Specified by:
clone
in interface DeepCloneable
- Overrides:
clone
in class TypeCheckingList
- Throws:
java.lang.CloneNotSupportedException
deepClone
public java.lang.Object deepClone()
throws java.lang.UnsupportedOperationException
- Description copied from interface:
DeepCloneable
- Create a deep clone of the object
- Specified by:
deepClone
in interface DeepCloneable
- Overrides:
deepClone
in class TypeCheckingList
- Throws:
java.lang.UnsupportedOperationException