Class SoftDoublyIndexedTable.Entry

  • Enclosing class:
    SoftDoublyIndexedTable

    protected class SoftDoublyIndexedTable.Entry
    extends java.lang.ref.SoftReference
    To manage collisions
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(int hash, java.lang.Object key1, java.lang.Object key2, java.lang.Object value, SoftDoublyIndexedTable.Entry next)
      Creates a new entry
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean match​(java.lang.Object o1, java.lang.Object o2)
      Whether this entry match the given keys.
      • Methods inherited from class java.lang.ref.SoftReference

        get
      • Methods inherited from class java.lang.ref.Reference

        clear, clone, enqueue, isEnqueued, reachabilityFence
      • Methods inherited from class java.lang.Object

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

      • hash

        public int hash
        The hash code
      • key1

        public java.lang.Object key1
        The first key
      • key2

        public java.lang.Object key2
        The second key
    • Constructor Detail

      • Entry

        public Entry​(int hash,
                     java.lang.Object key1,
                     java.lang.Object key2,
                     java.lang.Object value,
                     SoftDoublyIndexedTable.Entry next)
        Creates a new entry
    • Method Detail

      • match

        public boolean match​(java.lang.Object o1,
                             java.lang.Object o2)
        Whether this entry match the given keys.