Package 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
APointerTargetNodeListholds the results of a relationship method. Each node contains aPointerTarget(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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.didion.jwnl.util.TypeCheckingList
TypeCheckingList.TypeCheckingListIterator
-
-
Field Summary
Fields Modifier and Type Field Description private static NodePrinterPRINTER
-
Constructor Summary
Constructors Modifier Constructor Description PointerTargetNodeList()PointerTargetNodeList(java.util.LinkedList list)protectedPointerTargetNodeList(java.util.LinkedList list, java.lang.Class type)PointerTargetNodeList(PointerTarget[] targets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(PointerTarget target)voidadd(PointerTarget target, PointerType type)java.lang.Objectclone()Create a shallow clone of the objectjava.lang.ObjectdeepClone()Create a deep clone of the objectprotected NodePrintergetNodePrinter()voidprint()voidprint(int indent)voidprint(java.io.PrintStream stream)voidprint(java.io.PrintStream stream, int indent)protected voidprint(java.io.PrintStream stream, int indent, int indentIncrement)PointerTargetNodeListreverse()Reverse the contents of this list.PointerTargetTreeNodeListtoTreeList()Convert this list to a PointerTargetTreeNodeList.-
Methods inherited from class net.didion.jwnl.util.TypeCheckingList
add, add, addAll, addAll, clear, contains, containsAll, copyBackingList, equals, get, getType, getTypeCheckingListIterator, getTypeCheckingListIterator, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
-
-
-
-
Field Detail
-
PRINTER
private static final NodePrinter PRINTER
-
-
Constructor Detail
-
PointerTargetNodeList
public PointerTargetNodeList()
-
PointerTargetNodeList
public PointerTargetNodeList(java.util.LinkedList list)
-
PointerTargetNodeList
public PointerTargetNodeList(PointerTarget[] targets)
-
PointerTargetNodeList
protected PointerTargetNodeList(java.util.LinkedList list, java.lang.Class type)
-
-
Method Detail
-
add
public void add(PointerTarget target)
-
add
public void add(PointerTarget target, PointerType type)
-
getNodePrinter
protected NodePrinter getNodePrinter()
-
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)
-
print
protected void print(java.io.PrintStream stream, int indent, int indentIncrement)
-
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.CloneNotSupportedExceptionDescription copied from interface:DeepCloneableCreate a shallow clone of the object- Specified by:
clonein interfaceDeepCloneable- Overrides:
clonein classTypeCheckingList- Throws:
java.lang.CloneNotSupportedException
-
deepClone
public java.lang.Object deepClone() throws java.lang.UnsupportedOperationExceptionDescription copied from interface:DeepCloneableCreate a deep clone of the object- Specified by:
deepClonein interfaceDeepCloneable- Overrides:
deepClonein classTypeCheckingList- Throws:
java.lang.UnsupportedOperationException
-
-