Class HashCommon<Key>

Direct Known Subclasses:
HashedBunchMap, HashedTripleBunch

public abstract class HashCommon<Key> extends Object
Shared stuff for our hashing implementations: does the base work for hashing and growth sizes.
  • Field Details

    • capacity

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

    • getItemForTestingAt

      public 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.
    • keyIterator

      public ExtendedIterator<Key> keyIterator()
    • keyIterator

      public ExtendedIterator<Key> keyIterator(HashCommon.NotifyEmpty container)
    • keySpliterator

      public Spliterator<Key> keySpliterator()