Class EnumIntMap.Entry

java.lang.Object
com.github.tommyettinger.ds.EnumIntMap.Entry
Enclosing class:
EnumIntMap

public static class EnumIntMap.Entry extends Object
  • Field Details

    • key

      public Enum<?> key
    • value

      public int value
  • Constructor Details

    • Entry

      public Entry()
    • Entry

      public Entry(EnumIntMap.Entry entry)
    • Entry

      public Entry(Enum<?> key, int value)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getKey

      public Enum<?> getKey()
    • getValue

      public int getValue()
    • setValue

      public int setValue(int value)
      Sets the value of this Entry, but does not write through to the containing EnumIntMap.
      Parameters:
      value - the new int value to use
      Returns:
      the old value this held, before modification
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object