Interface AATreeSet.Node<E>

  • All Known Implementing Classes:
    AATreeSet.AbstractTreeNode, Region
    Enclosing class:
    AATreeSet<T extends java.lang.Comparable>

    public static interface AATreeSet.Node<E>
    Interface implemented by nodes within this tree.
    • Method Detail

      • compareTo

        int compareTo​(E data)
        Compare this node to the supplied 'data' object.
      • setLeft

        void setLeft​(AATreeSet.Node<E> node)
        Set this node's left child.
      • setRight

        void setRight​(AATreeSet.Node<E> node)
        Set this node's right child.
      • getLevel

        int getLevel()
        Get this node's level.
      • setLevel

        void setLevel​(int value)
        Set this node's level.
      • decrementLevel

        int decrementLevel()
        Decrement and then return this node's new level.
      • incrementLevel

        int incrementLevel()
        Increment and then return this node's new level.
      • swapPayload

        void swapPayload​(AATreeSet.Node<E> with)
        Swap the payload objects between this node and the supplied node.
      • getPayload

        E getPayload()
        Return the 'value' object held within this node.