Class IntEntry<T>

  • Type Parameters:
    T - the type of the value

    public class IntEntry<T>
    extends java.lang.Object
    like Entry<k, v> except the k is an int.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int key  
      private T value  
    • Constructor Summary

      Constructors 
      Constructor Description
      IntEntry​(int i, T v)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int getKey()  
      T getValue()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • key

        private int key
      • value

        private T value
    • Constructor Detail

      • IntEntry

        public IntEntry​(int i,
                        T v)
    • Method Detail

      • getKey

        public int getKey()
        Returns:
        the key
      • getValue

        public T getValue()
        Returns:
        the Value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object