java.lang.Object
org.apache.jena.mem2.collection.HashCommonBase<E>
- Type Parameters:
E- the element type
- Direct Known Subclasses:
HashCommonMap,HashCommonSet
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 Summary
Modifier and TypeMethodDescriptionbooleanbooleancontainsKey(E key) booleanisEmpty()voidremoveUnchecked(E key) Remove the objectkeyfrom this hash's keys if it is present (if it's absent, do nothing).intsize()booleanRemove the objectkeyfrom this hash's keys if it is present (if it's absent, do nothing).
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
tryRemove
Remove the objectkeyfrom this hash's keys if it is present (if it's absent, do nothing). -
removeUnchecked
Remove the objectkeyfrom this hash's keys if it is present (if it's absent, do nothing). -
containsKey
-
anyMatch
-
keyIterator
-
keySpliterator
-