Package one.microstream.util
Class Substituter.Default<T>
java.lang.Object
one.microstream.util.Substituter.Default<T>
- All Implemented Interfaces:
XIterable<T>
,Clearable
,Composition
,Substituter<T>
,Substituter.Iterable<T>
,Substituter.Managed<T>
,Substituter.Queryable<T>
,Substituter.Removing<T>
- Enclosing interface:
- Substituter<T>
public static final class Substituter.Default<T> extends Object implements Substituter.Managed<T>, Composition
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.util.Substituter
Substituter.Default<T>, Substituter.Iterable<T>, Substituter.Managed<T>, Substituter.Queryable<T>, Substituter.Removing<T>
Nested classes/interfaces inherited from interface one.microstream.collections.types.XIterable
XIterable.Executor<E>
-
Method Summary
Modifier and Type Method Description EqHashEnum<T>
$elements()
void
clear()
boolean
contains(T item)
XGettingEnum<T>
elements()
<P extends Consumer<? super T>>
Piterate(P procedure)
Executes the given procedure for each element of theXIterable
until all elements have been processed or the action throws an exception.T
lookup(T instance)
T
remove(T item)
long
size()
T
substitute(T item)
String
toString()
-
Method Details
-
elements
-
substitute
- Specified by:
substitute
in interfaceSubstituter<T>
-
clear
public final void clear()- Specified by:
clear
in interfaceClearable
- Specified by:
clear
in interfaceSubstituter.Removing<T>
-
iterate
Description copied from interface:XIterable
Executes the given procedure for each element of theXIterable
until all elements have been processed or the action throws an exception. Unless otherwise specified by the implementing class, procedures are performed in the order of iteration (if an iteration order is specified). Exceptions thrown by the procedure are relayed to the caller.
Should be identical toIterable.forEach(Consumer)
. -
contains
- Specified by:
contains
in interfaceSubstituter.Queryable<T>
-
lookup
- Specified by:
lookup
in interfaceSubstituter.Queryable<T>
-
remove
- Specified by:
remove
in interfaceSubstituter.Removing<T>
-
size
public final long size()- Specified by:
size
in interfaceSubstituter.Queryable<T>
-
toString
-
$elements
-