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
APointerTargetNodeList
holds 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)
protected
PointerTargetNodeList(LinkedList list, Class type)
PointerTargetNodeList(PointerTarget[] targets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(PointerTarget target)
void
add(PointerTarget target, PointerType type)
Object
clone()
Create a shallow clone of the objectObject
deepClone()
Create a deep clone of the objectprotected NodePrinter
getNodePrinter()
void
print()
void
print(int indent)
void
print(PrintStream stream)
void
print(PrintStream stream, int indent)
protected void
print(PrintStream stream, int indent, int indentIncrement)
PointerTargetNodeList
reverse()
Reverse the contents of this list.PointerTargetTreeNodeList
toTreeList()
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:DeepCloneable
Create a shallow clone of the object- Specified by:
clone
in interfaceDeepCloneable
- Overrides:
clone
in classTypeCheckingList
- Throws:
CloneNotSupportedException
-
deepClone
public Object deepClone() throws UnsupportedOperationException
Description copied from interface:DeepCloneable
Create a deep clone of the object- Specified by:
deepClone
in interfaceDeepCloneable
- Overrides:
deepClone
in classTypeCheckingList
- Throws:
UnsupportedOperationException
-
-