Interface CollisionSet<T>
- All Known Implementing Classes:
ListCollisionSet
,TreeCollisionSet
public interface CollisionSet<T>
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 TypeMethodDescriptionboolean
contains
(CollisionSet.Node node, T value) delete
(CollisionSet.Node node, T value) empty()
first
(CollisionSet.Node node) void
forEach
(CollisionSet.Node node, Proc1<T> proc) <E extends Exception>
voidforEachThrows
(CollisionSet.Node node, Proc1Throws<T, E> proc) default GenericIterator.Iterable
<T> insert
(CollisionSet.Node node, T value) default SplitableIterable
<T> iterable
(CollisionSet.Node node) iterateOverRange
(CollisionSet.Node node, GenericIterator.State<T> parent, int offset, int limit) default SplitableIterator
<T> iterator
(CollisionSet.Node node) <R> R
reduce
(CollisionSet.Node node, R sum, Sum1<T, R> proc) <R,
E extends Exception>
RreduceThrows
(CollisionSet.Node node, R sum, Sum1Throws<T, R, E> proc) int
size
(CollisionSet.Node node)
-
Method Details
-
empty
-
single
-
dual
-
size
-
contains
-
insert
-
delete
-
first
-
iterateOverRange
@Nullable GenericIterator.State<T> iterateOverRange(@Nonnull CollisionSet.Node node, @Nullable GenericIterator.State<T> parent, int offset, int limit) -
genericIterable
-
iterable
-
iterator
-
forEach
-
forEachThrows
<E extends Exception> void forEachThrows(@Nonnull CollisionSet.Node node, @Nonnull Proc1Throws<T, E> proc) throws E- Throws:
E
-
reduce
-
reduceThrows
<R,E extends Exception> R reduceThrows(@Nonnull CollisionSet.Node node, R sum, @Nonnull Sum1Throws<T, R, throws EE> proc) - Throws:
E
-