Package net.splitcells.dem.data.set
Interface Set<T>
-
- All Superinterfaces:
Collection<T>
,Iterable<T>
,Set<T>
,SetT<T>
- All Known Implementing Classes:
SetI
,SetLegacyWrapper
public interface Set<T> extends Set<T>, SetT<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<Boolean>
_isDeterministic()
Determines if actions on thisSet
are deterministic.default boolean
add(T e)
default void
addAll(T... objects)
default void
assertSizeIs(int expectedSize)
default boolean
containsAny(Set<T> objects)
default boolean
containsAny(T... objects)
default void
delete(T arg)
void
ensureContains(T e)
default Bool
hasOnlyOnce(T arg)
default Set<T>
with(Collection<T> args)
default Set<T>
with(T... args)
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
-
Methods inherited from interface net.splitcells.dem.data.set.SetT
flatMapped, hasDuplicates, mapped, reduced, requireSizeOf, requireUniqueness
-
-
-
-
Method Detail
-
add
default boolean add(T e)
-
ensureContains
void ensureContains(T e)
-
addAll
default void addAll(T... objects)
-
containsAny
default boolean containsAny(T... objects)
-
with
default Set<T> with(Collection<T> args)
-
delete
default void delete(T arg)
-
_isDeterministic
default Optional<Boolean> _isDeterministic()
Determines if actions on thisSet
are deterministic.This is only used in order to test
Set
factories.- Returns:
- Is this determinstic.
-
assertSizeIs
default void assertSizeIs(int expectedSize)
-
-