public class PointerTargetNodeList extends TypeCheckingList
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.TypeCheckingList.TypeCheckingListIterator
Modifier | Constructor and Description |
---|---|
|
PointerTargetNodeList() |
|
PointerTargetNodeList(LinkedList list) |
protected |
PointerTargetNodeList(LinkedList list,
Class type) |
|
PointerTargetNodeList(PointerTarget[] targets) |
Modifier and Type | Method and Description |
---|---|
void |
add(PointerTarget target) |
void |
add(PointerTarget target,
PointerType type) |
Object |
clone()
Create a shallow clone of the object
|
Object |
deepClone()
Create a deep clone of the object
|
protected 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.
|
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
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
public PointerTargetNodeList()
public PointerTargetNodeList(LinkedList list)
public PointerTargetNodeList(PointerTarget[] targets)
protected PointerTargetNodeList(LinkedList list, Class type)
public void add(PointerTarget target)
public void add(PointerTarget target, PointerType type)
protected NodePrinter getNodePrinter()
public void print()
public void print(int indent)
public void print(PrintStream stream)
public void print(PrintStream stream, int indent)
protected void print(PrintStream stream, int indent, int indentIncrement)
public PointerTargetTreeNodeList toTreeList()
public PointerTargetNodeList reverse()
public Object clone() throws CloneNotSupportedException
DeepCloneable
clone
in interface DeepCloneable
clone
in class TypeCheckingList
CloneNotSupportedException
public Object deepClone() throws UnsupportedOperationException
DeepCloneable
deepClone
in interface DeepCloneable
deepClone
in class TypeCheckingList
UnsupportedOperationException
Copyright © 2022. All rights reserved.