Class IntHashMap.Entry

  • Enclosing class:
    IntHashMap

    private static class IntHashMap.Entry
    extends java.lang.Object

    Innerclass that acts as a datastructure to create a new entry in the table.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int hash  
      (package private) int key  
      (package private) IntHashMap.Entry next  
      (package private) java.lang.Object value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Entry​(int hash, int key, java.lang.Object value, IntHashMap.Entry next)
      Create a new entry with the given values.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • hash

        final int hash
      • key

        final int key
      • value

        java.lang.Object value
    • Constructor Detail

      • Entry

        protected Entry​(int hash,
                        int key,
                        java.lang.Object value,
                        IntHashMap.Entry next)

        Create a new entry with the given values.

        Parameters:
        hash - The code used to hash the object with
        key - The key used to enter this in the table
        value - The value for this key
        next - A reference to the next entry in the table