java.lang.Object
org.apache.jena.mem.HashCommon<Key>
- Direct Known Subclasses:
HashedBunchMap,HashedTripleBunch
Shared stuff for our hashing implementations: does the base work for
hashing and growth sizes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA 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 aNotifyEmptyobject in when the iterator is constructed, and itsemptiedmethod is called when the bunch becomes empty. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetItemForTestingAt(int i) Answer the item at indexiofkeys.keyIterator(HashCommon.NotifyEmpty container) voidRemove the objectkeyfrom this hash's keys if it is present (if it's absent, do nothing).
-
Field Details
-
capacity
public int capacityThe capacity (length) of the key array.
-
-
Method Details
-
getItemForTestingAt
Answer the item at indexiofkeys. This method is for testing purposes only. -
remove
Remove the objectkeyfrom this hash's keys if it is present (if it's absent, do nothing). If a key is removed, theremoveAssociatedValueswill be invoked. If a key is moved, themoveAssociatedValuesmethod will be called. -
keyIterator
-
keyIterator
-
keySpliterator
-