Class LongHashtable.Entry

  • Enclosing class:
    LongHashtable

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

      Constructors 
      Modifier Constructor Description
      protected Entry​(int hash, long key, long value, LongHashtable.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()  
      long getKey()  
      long getValue()  
      • Methods inherited from class java.lang.Object

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

      • Entry

        protected Entry​(int hash,
                        long key,
                        long value,
                        LongHashtable.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 long getKey()
      • getValue

        public long getValue()
      • clone

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