Class KeyIndexedObject

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String key  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected KeyIndexedObject​(java.lang.String key)  
    • Method Summary

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

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

      • key

        private final java.lang.String key
    • Constructor Detail

    • Method Detail

      • getKey

        public java.lang.String getKey()
        Returns:
        the unique key that identifies this object among other instances of the same class
      • 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