Class PartiallyOrderedSet.Node<E>

  • Type Parameters:
    E - Element type
    Direct Known Subclasses:
    Enclosing class:

    private static class PartiallyOrderedSet.Node<E>
    extends java.lang.Object
    Holds a value, its parent nodes, and child nodes.

    We deliberately do not override Object.hashCode() or Object.equals(Object). A canonizing map ensures that within a given PartiallyOrderedSet, two nodes are identical if and only if they contain the same value.

    • Constructor Detail

      • Node

        Node​(E e)
    • Method Detail

      • toString

        public java.lang.String toString()
        toString in class java.lang.Object