Class EnumLongMap.Entry

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

public static class EnumLongMap.Entry extends Object
  • Field Details

    • key

      public Enum<?> key
    • value

      public long value
  • Constructor Details

    • Entry

      public Entry()
    • Entry

      public Entry(EnumLongMap.Entry entry)
    • Entry

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

    • toString

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

      public Enum<?> getKey()
    • getValue

      public long getValue()
    • setValue

      public long setValue(long value)
      Sets the value of this Entry, but does not write through to the containing EnumLongMap.
      Parameters:
      value - the new long 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