Class HashCommonBase<E>

java.lang.Object
org.apache.jena.mem2.collection.HashCommonBase<E>
Type Parameters:
E - the element type
Direct Known Subclasses:
HashCommonMap, HashCommonSet

public abstract class HashCommonBase<E> extends Object
Common code for hash tables and sets. The hash table is a lookup table. The hash codes are not stored. When the table grows, all hash codes need to be recalculated.
  • Method Details

    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • tryRemove

      public boolean tryRemove(E key)
      Remove the object key from this hash's keys if it is present (if it's absent, do nothing).
    • removeUnchecked

      public void removeUnchecked(E key)
      Remove the object key from this hash's keys if it is present (if it's absent, do nothing).
    • containsKey

      public boolean containsKey(E key)
    • anyMatch

      public boolean anyMatch(Predicate<E> predicate)
    • keyIterator

      public ExtendedIterator<E> keyIterator()
    • keySpliterator

      public Spliterator<E> keySpliterator()