Class HashCommon<Key>

  • Direct Known Subclasses:
    HashedBunchMap, HashedTripleBunch

    public abstract class HashCommon<Key>
    extends java.lang.Object
    Shared stuff for our hashing implementations: does the base work for hashing and growth sizes.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  HashCommon.NotifyEmpty
      A hashed structure may become empty as a side-effect of a .remove on one of its iterators: a container can request notification of this by passing a NotifyEmpty object in when the iterator is constructed, and its emptied method is called when the bunch becomes empty.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int capacity
      The capacity (length) of the key array.
    • Field Detail

      • capacity

        public int capacity
        The capacity (length) of the key array.
    • Method Detail

      • getItemForTestingAt

        public java.lang.Object getItemForTestingAt​(int i)
        Answer the item at index i of keys. This method is for testing purposes only.
      • remove

        public void remove​(Key key)
        Remove the object key from this hash's keys if it is present (if it's absent, do nothing). If a key is removed, the removeAssociatedValues will be invoked. If a key is moved, the moveAssociatedValues method will be called.