Class IntHashtable.Entry

  • Enclosing class:
    IntHashtable

    static class IntHashtable.Entry
    extends java.lang.Object

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

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Entry​(int hash, int key, int value, IntHashtable.Entry next)
      Create a new entry with the given values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object clone()  
      int getKey()  
      int getValue()  
      • Methods inherited from class java.lang.Object

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

      • hash

        private final int hash
      • key

        private final int key
      • value

        private int value
    • Constructor Detail

      • Entry

        private Entry​(int hash,
                      int key,
                      int value,
                      IntHashtable.Entry next)

        Create a new entry with the given values.

        Parameters:
        hash - The code used to hash the int 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
    • Method Detail

      • getKey

        public int getKey()
      • getValue

        public int getValue()
      • clone

        protected java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object