Class TriplyIndexedTable.Entry

  • Enclosing class:
    TriplyIndexedTable

    protected static class TriplyIndexedTable.Entry
    extends java.lang.Object
    To manage collisions
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int hash
      The hash code
      java.lang.Object key1
      The first key
      java.lang.Object key2
      The second key
      java.lang.Object key3
      The third key
      TriplyIndexedTable.Entry next
      The next entry
      java.lang.Object value
      The value
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(int hash, java.lang.Object key1, java.lang.Object key2, java.lang.Object key3, java.lang.Object value, TriplyIndexedTable.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, java.lang.Object o3)
      Whether this entry matches the given keys.
      • Methods inherited from class java.lang.Object

        clone, 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
      • key3

        public java.lang.Object key3
        The third key
      • value

        public java.lang.Object value
        The value
    • Constructor Detail

      • Entry

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

      • match

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