net.sf.extjwnl.data.list
Class PointerTargetNodeList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<PointerTargetNode>
                  extended by net.sf.extjwnl.data.list.PointerTargetNodeList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<PointerTargetNode>, Collection<PointerTargetNode>, Deque<PointerTargetNode>, List<PointerTargetNode>, Queue<PointerTargetNode>, DeepCloneable

public class PointerTargetNodeList
extends LinkedList<PointerTargetNode>
implements DeepCloneable

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.

Author:
John Didion , Aliaksandr Autayeu
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PointerTargetNodeList()
           
PointerTargetNodeList(Collection<? extends PointerTargetNode> c)
           
PointerTargetNodeList(List<PointerTarget> targets, PointerType pointerType)
           
 
Method Summary
 void add(PointerTarget target, PointerType pointerType)
           
 PointerTargetNodeList clone()
          Create a shallow clone of the object.
 PointerTargetNodeList deepClone()
          Create a deep clone of the object.
protected  NodePrinter<PointerTargetNode> 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()
          Reverses the contents of this list.
 PointerTargetTreeNodeList toTreeList()
          Converts this list to a PointerTargetTreeNodeList.
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

PointerTargetNodeList

public PointerTargetNodeList()

PointerTargetNodeList

public PointerTargetNodeList(Collection<? extends PointerTargetNode> c)

PointerTargetNodeList

public PointerTargetNodeList(List<PointerTarget> targets,
                             PointerType pointerType)
Method Detail

add

public void add(PointerTarget target,
                PointerType pointerType)

getNodePrinter

protected NodePrinter<PointerTargetNode> 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()
Converts this list to a PointerTargetTreeNodeList.

Returns:
PointerTargetTreeNodeList

reverse

public PointerTargetNodeList reverse()
Reverses 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.

Returns:
reversed list

clone

public PointerTargetNodeList clone()
Description copied from interface: DeepCloneable
Create a shallow clone of the object.

Specified by:
clone in interface DeepCloneable
Overrides:
clone in class LinkedList<PointerTargetNode>

deepClone

public PointerTargetNodeList deepClone()
                                throws CloneNotSupportedException
Description copied from interface: DeepCloneable
Create a deep clone of the object.

Specified by:
deepClone in interface DeepCloneable
Returns:
a deep clone of the object
Throws:
CloneNotSupportedException - CloneNotSupportedException


Copyright © 2011. All Rights Reserved.