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:
Cloneable,Iterable,Collection,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
-
-
Constructor Summary
Constructors Modifier Constructor Description PointerTargetNodeList()PointerTargetNodeList(LinkedList list)protectedPointerTargetNodeList(LinkedList list, 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)Objectclone()Create a shallow clone of the objectObjectdeepClone()Create a deep clone of the objectprotected NodePrintergetNodePrinter()voidprint()voidprint(int indent)voidprint(PrintStream stream)voidprint(PrintStream stream, int indent)protected voidprint(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
-
-
-
-
Constructor Detail
-
PointerTargetNodeList
public PointerTargetNodeList()
-
PointerTargetNodeList
public PointerTargetNodeList(LinkedList list)
-
PointerTargetNodeList
public PointerTargetNodeList(PointerTarget[] targets)
-
PointerTargetNodeList
protected PointerTargetNodeList(LinkedList list, 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(PrintStream stream)
-
print
public void print(PrintStream stream, int indent)
-
print
protected void print(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 Object clone() throws CloneNotSupportedException
Description copied from interface:DeepCloneableCreate a shallow clone of the object- Specified by:
clonein interfaceDeepCloneable- Overrides:
clonein classTypeCheckingList- Throws:
CloneNotSupportedException
-
deepClone
public Object deepClone() throws UnsupportedOperationException
Description copied from interface:DeepCloneableCreate a deep clone of the object- Specified by:
deepClonein interfaceDeepCloneable- Overrides:
deepClonein classTypeCheckingList- Throws:
UnsupportedOperationException
-
-