Class ConstantMap.Key

  • Enclosing class:
    ConstantMap

    private static final class ConstantMap.Key
    extends java.lang.Object
    Same as java.lang.Long, but value can be modified so a lookup instance can be reused and object creation avoided
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Key​(long value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • value

        long value
    • Constructor Detail

      • Key

        Key​(long value)
    • Method Detail

      • hashCode

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

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • toString

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