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
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.-
Nested Class Summary
Nested classes/interfaces inherited from class net.didion.jwnl.util.TypeCheckingList
TypeCheckingList.TypeCheckingListIterator
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PointerTargetNodeList
(LinkedList list, Class type) PointerTargetNodeList
(PointerTarget[] targets) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(PointerTarget target) void
add
(PointerTarget target, PointerType type) clone()
Create a shallow clone of the objectCreate a deep clone of the objectprotected NodePrinter
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) reverse()
Reverse the contents of this list.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
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods inherited from interface java.util.List
hashCode, replaceAll, sort, spliterator
-
Field Details
-
PRINTER
-
-
Constructor Details
-
PointerTargetNodeList
public PointerTargetNodeList() -
PointerTargetNodeList
-
PointerTargetNodeList
-
PointerTargetNodeList
-
-
Method Details
-
add
-
add
-
getNodePrinter
-
print
public void print() -
print
public void print(int indent) -
print
-
print
-
print
-
toTreeList
Convert this list to a PointerTargetTreeNodeList. -
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
Description copied from interface:DeepCloneable
Create a shallow clone of the object- Specified by:
clone
in interfaceDeepCloneable
- Overrides:
clone
in classTypeCheckingList
- Throws:
CloneNotSupportedException
-
deepClone
Description copied from interface:DeepCloneable
Create a deep clone of the object- Specified by:
deepClone
in interfaceDeepCloneable
- Overrides:
deepClone
in classTypeCheckingList
- Throws:
UnsupportedOperationException
-