Class IdentityKeyedObjectKey<KV>

java.lang.Object
com.illumon.util.datastructures.hash.IdentityKeyedObjectKey<KV>
All Implemented Interfaces:
com.fishlib.base.hash.KeyedObjectKey<KV,​KV>

public final class IdentityKeyedObjectKey<KV>
extends Object
implements com.fishlib.base.hash.KeyedObjectKey<KV,​KV>
Key implementation for objects keyed by their own identity.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.fishlib.base.hash.KeyedObjectKey

    com.fishlib.base.hash.KeyedObjectKey.Basic<K extends Object,​V extends Object>, com.fishlib.base.hash.KeyedObjectKey.BasicAdapter<K extends Object,​V extends Object>, com.fishlib.base.hash.KeyedObjectKey.Exact<K extends Object,​V extends Object>, com.fishlib.base.hash.KeyedObjectKey.ExactAdapter<K extends Object,​V extends Object>, com.fishlib.base.hash.KeyedObjectKey.NullSafeBasic<K extends Object,​V extends Object>, com.fishlib.base.hash.KeyedObjectKey.NullSafeBasicAdapter<K extends Object,​V extends Object>, com.fishlib.base.hash.KeyedObjectKey.NullSafeExact<K extends Object,​V extends Object>, com.fishlib.base.hash.KeyedObjectKey.NullSafeExactAdapter<K extends Object,​V extends Object>
  • Method Summary

    Modifier and Type Method Description
    boolean equalKey​(KV kv1, KV kv2)  
    static <KV> com.fishlib.base.hash.KeyedObjectKey<KV,​KV> getInstance()  
    KV getKey​(KV kv)  
    int hashKey​(KV kv)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getInstance

      public static <KV> com.fishlib.base.hash.KeyedObjectKey<KV,​KV> getInstance()
    • getKey

      public KV getKey​(KV kv)
      Specified by:
      getKey in interface com.fishlib.base.hash.KeyedObjectKey<KV,​KV>
    • hashKey

      public int hashKey​(KV kv)
      Specified by:
      hashKey in interface com.fishlib.base.hash.KeyedObjectKey<KV,​KV>
    • equalKey

      public boolean equalKey​(KV kv1, KV kv2)
      Specified by:
      equalKey in interface com.fishlib.base.hash.KeyedObjectKey<KV,​KV>