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 interface
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 aNotifyEmpty
object in when the iterator is constructed, and itsemptied
method is called when the bunch becomes empty. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetItemForTestingAt
(int i) Answer the item at indexi
ofkeys
.keyIterator
(HashCommon.NotifyEmpty container) void
Remove the objectkey
from 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 indexi
ofkeys
. This method is for testing purposes only. -
remove
Remove the objectkey
from this hash's keys if it is present (if it's absent, do nothing). If a key is removed, theremoveAssociatedValues
will be invoked. If a key is moved, themoveAssociatedValues
method will be called. -
keyIterator
-
keyIterator
-