Package net.splitcells.dem.data.set
Class SetLegacyWrapper<T>
- java.lang.Object
-
- net.splitcells.dem.data.set.SetLegacyWrapper<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Boolean>
_isDeterministic()
Determines if actions on thisSet
are deterministic.boolean
add(T arg0)
boolean
addAll(Collection<? extends T> arg0)
void
clear()
boolean
contains(Object arg0)
boolean
containsAll(Collection<?> arg0)
void
ensureContains(T e)
boolean
isEmpty()
Iterator<T>
iterator()
boolean
remove(Object arg0)
boolean
removeAll(Collection<?> arg0)
boolean
retainAll(Collection<?> arg0)
static <R> Set<R>
setLegacyWrapper()
static <R> Set<R>
setLegacyWrapper(Set<R> arg)
static <R> Set<R>
setLegacyWrapper(Set<R> arg, boolean isDeterministic)
int
size()
Spliterator<T>
spliterator()
Object[]
toArray()
<T> T[]
toArray(T[] arg0)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface net.splitcells.dem.data.set.Set
addAll, assertSizeIs, containsAny, containsAny, delete, hasOnlyOnce, requirePresenceOf, with, with
-
Methods inherited from interface net.splitcells.dem.data.set.SetT
flatMapped, hasDuplicates, mapped, reduced, requireEmptySet, requireSetSizeOf, requireUniqueness
-
-
-
-
Method Detail
-
setLegacyWrapper
public static <R> Set<R> setLegacyWrapper()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object arg0)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] arg0)
-
add
public boolean add(T arg0)
-
ensureContains
public void ensureContains(T e)
- Specified by:
ensureContains
in interfaceSet<T>
-
remove
public boolean remove(Object arg0)
-
containsAll
public boolean containsAll(Collection<?> arg0)
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceSet<T>
-
addAll
public boolean addAll(Collection<? extends T> arg0)
-
retainAll
public boolean retainAll(Collection<?> arg0)
-
removeAll
public boolean removeAll(Collection<?> arg0)
-
clear
public void clear()
-
spliterator
public Spliterator<T> spliterator()
- Specified by:
spliterator
in interfaceCollection<T>
- Specified by:
spliterator
in interfaceIterable<T>
- Specified by:
spliterator
in interfaceSet<T>
-
_isDeterministic
public Optional<Boolean> _isDeterministic()
Description copied from interface:Set
Determines if actions on thisSet
are deterministic.This is only used in order to test
Set
factories.- Specified by:
_isDeterministic
in interfaceSet<T>
- Returns:
- Is this determinstic.
-
-