Class BinaryHeap.Node

  • Enclosing class:
    BinaryHeap<O,​W extends java.lang.Comparable<W>>

    public class BinaryHeap.Node
    extends java.lang.Object
    • Constructor Detail

      • Node

        public Node​(O object,
                    W weight)
    • Method Detail

      • getObject

        public O getObject()
      • getWeight

        public W getWeight()
      • setWeight

        public void setWeight​(W weight)
      • isEnqueued

        public boolean isEnqueued()
      • toString

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