Class PointerTargetNodeList

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, DeepCloneable
    Direct Known Subclasses:
    PointerTargetTreeNodeList

    public class PointerTargetNodeList
    extends TypeCheckingList
    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.
    • Constructor Detail

      • PointerTargetNodeList

        public PointerTargetNodeList()
      • PointerTargetNodeList

        public PointerTargetNodeList​(java.util.LinkedList list)
      • PointerTargetNodeList

        public PointerTargetNodeList​(PointerTarget[] targets)
      • PointerTargetNodeList

        protected PointerTargetNodeList​(java.util.LinkedList list,
                                        java.lang.Class type)
    • Method Detail

      • getNodePrinter

        protected NodePrinter getNodePrinter()
      • print

        public void print()
      • print

        public void print​(int indent)
      • print

        public void print​(java.io.PrintStream stream)
      • print

        public void print​(java.io.PrintStream stream,
                          int indent)
      • print

        protected void print​(java.io.PrintStream stream,
                             int indent,
                             int indentIncrement)
      • reverse

        public PointerTargetNodeList 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

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Description copied from interface: DeepCloneable
        Create a shallow clone of the object
        Specified by:
        clone in interface DeepCloneable
        Overrides:
        clone in class TypeCheckingList
        Throws:
        java.lang.CloneNotSupportedException
      • deepClone

        public java.lang.Object deepClone()
                                   throws java.lang.UnsupportedOperationException
        Description copied from interface: DeepCloneable
        Create a deep clone of the object
        Specified by:
        deepClone in interface DeepCloneable
        Overrides:
        deepClone in class TypeCheckingList
        Throws:
        java.lang.UnsupportedOperationException