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, toArrayfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic 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
DeepCloneableclone in interface DeepCloneableclone in class TypeCheckingListCloneNotSupportedExceptionpublic Object deepClone() throws UnsupportedOperationException
DeepCloneabledeepClone in interface DeepCloneabledeepClone in class TypeCheckingListUnsupportedOperationExceptionCopyright © 2023. All rights reserved.