Class IntHashtable.Entry

  • Enclosing class:
    IntHashtable

    public static class IntHashtable.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 key  
      (package private) IntHashtable.Entry next  
      (package private) int value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(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()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Entry

        Entry​(int key,
              int value,
              IntHashtable.Entry next)
        Create a new entry with the given values.
        Parameters:
        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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object