Interface CollisionMap<K,V>
- All Known Implementing Classes:
ListCollisionMap
,TreeCollisionMap
public interface CollisionMap<K,V>
Interface for simple collection objects that manage the contents of leaf nodes in the hash table.
Implementations are free to use any class for their leaf nodes and manage them as needed.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondelete
(CollisionMap.Node node, K key) empty()
findEntry
(CollisionMap.Node node, K key) findValue
(CollisionMap.Node node, K key) first
(CollisionMap.Node node) void
forEach
(CollisionMap.Node node, Proc2<K, V> proc) <E extends Exception>
voidforEachThrows
(CollisionMap.Node node, Proc2Throws<K, V, E> proc) default GenericIterator.Iterable
<IMapEntry<K, V>> getValueOr
(CollisionMap.Node node, K key, V defaultValue) default SplitableIterable
<IMapEntry<K, V>> iterable
(CollisionMap.Node node) iterateOverRange
(CollisionMap.Node node, GenericIterator.State<IMapEntry<K, V>> parent, int offset, int limit) default SplitableIterator
<IMapEntry<K, V>> iterator
(CollisionMap.Node node) <R> R
reduce
(CollisionMap.Node node, R sum, Sum2<K, V, R> proc) <R,
E extends Exception>
RreduceThrows
(CollisionMap.Node node, R sum, Sum2Throws<K, V, R, E> proc) int
size
(CollisionMap.Node node) update
(CollisionMap.Node node, K key, V value)
-
Method Details
-
empty
-
single
-
dual
-
size
-
update
@Nonnull CollisionMap.Node update(@Nonnull CollisionMap.Node node, @Nonnull K key, @Nullable V value) -
update
-
delete
-
getValueOr
-
findValue
-
findEntry
-
first
-
iterateOverRange
@Nullable GenericIterator.State<IMapEntry<K,V>> iterateOverRange(@Nonnull CollisionMap.Node node, @Nullable GenericIterator.State<IMapEntry<K, V>> parent, int offset, int limit) -
genericIterable
@Nonnull default GenericIterator.Iterable<IMapEntry<K,V>> genericIterable(@Nonnull CollisionMap.Node node) -
iterable
-
iterator
-
forEach
-
forEachThrows
<E extends Exception> void forEachThrows(@Nonnull CollisionMap.Node node, @Nonnull Proc2Throws<K, V, throws EE> proc) - Throws:
E
-
reduce
-
reduceThrows
<R,E extends Exception> R reduceThrows(@Nonnull CollisionMap.Node node, R sum, @Nonnull Sum2Throws<K, V, throws ER, E> proc) - Throws:
E
-