Class PriorityQueueTest.MutableInteger

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int value  
    • Constructor Summary

      Constructors 
      Constructor Description
      MutableInteger​(int value)  
    • Field Detail

      • value

        private int value
    • Constructor Detail

      • MutableInteger

        public MutableInteger​(int value)
    • Method Detail

      • get

        public int get()
        Returns:
        The integer value stored inside this MutableInteger.
      • set

        public void set​(int value)
        Update the integer value stored inside this MutableInteger.
        Parameters:
        value - New value to set.
      • toString

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