Class StringIntMap.Entry

  • Enclosing class:
    StringIntMap

    protected static class StringIntMap.Entry
    extends java.lang.Object
    To manage collisions
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int hash
      The hash code, must not change after init.
      java.lang.String key
      The key
      StringIntMap.Entry next
      The next entry - changed, when table[] is reordered.
      int value
      The value, not changed after creation.
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(int hash, java.lang.String key, int value, StringIntMap.Entry next)
      Creates a new entry
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hash

        public final int hash
        The hash code, must not change after init.
      • key

        public java.lang.String key
        The key
      • value

        public int value
        The value, not changed after creation.
      • next

        public StringIntMap.Entry next
        The next entry - changed, when table[] is reordered.
    • Constructor Detail

      • Entry

        public Entry​(int hash,
                     java.lang.String key,
                     int value,
                     StringIntMap.Entry next)
        Creates a new entry