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()voidclear()booleancontains(T item)XGettingEnum<T>elements()<P extends Consumer<? super T>>
Piterate(P procedure)Executes the given procedure for each element of theXIterableuntil all elements have been processed or the action throws an exception.Tlookup(T instance)Tremove(T item)longsize()Tsubstitute(T item)StringtoString()
-
Method Details
-
elements
-
substitute
- Specified by:
substitutein interfaceSubstituter<T>
-
clear
public final void clear()- Specified by:
clearin interfaceClearable- Specified by:
clearin interfaceSubstituter.Removing<T>
-
iterate
Description copied from interface:XIterableExecutes the given procedure for each element of theXIterableuntil 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:
containsin interfaceSubstituter.Queryable<T>
-
lookup
- Specified by:
lookupin interfaceSubstituter.Queryable<T>
-
remove
- Specified by:
removein interfaceSubstituter.Removing<T>
-
size
public final long size()- Specified by:
sizein interfaceSubstituter.Queryable<T>
-
toString
-
$elements
-