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 TypeCheckingList
TypeCheckingList.TypeCheckingListIterator -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPointerTargetNodeList(LinkedList list, Class type) PointerTargetNodeList(PointerTarget[] targets) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(PointerTarget target) voidadd(PointerTarget target, PointerType type) clone()Create a shallow clone of the objectCreate a deep clone of the objectprotected NodePrintervoidprint()voidprint(int indent) voidprint(PrintStream stream) voidprint(PrintStream stream, int indent) protected voidprint(PrintStream stream, int indent, int indentIncrement) reverse()Reverse the contents of this list.Convert this list to a PointerTargetTreeNodeList.Methods inherited from class 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, toArrayMethods inherited from class Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface 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:DeepCloneableCreate a shallow clone of the object- Specified by:
clonein interfaceDeepCloneable- Overrides:
clonein classTypeCheckingList- Throws:
CloneNotSupportedException
-
deepClone
Description copied from interface:DeepCloneableCreate a deep clone of the object- Specified by:
deepClonein interfaceDeepCloneable- Overrides:
deepClonein classTypeCheckingList- Throws:
UnsupportedOperationException
-