public static final class Substituter.Default<T> extends Object implements Substituter.Managed<T>, Composition
XIterable.Executor<E>Substituter.Default<T>, Substituter.Iterable<T>, Substituter.Managed<T>, Substituter.Queryable<T>, Substituter.Removing<T>| Modifier and Type | Method and Description |
|---|---|
EqHashEnum<T> |
$elements() |
void |
clear() |
boolean |
contains(T item) |
XGettingEnum<T> |
elements() |
<P extends Consumer<? super T>> |
iterate(P procedure)
Executes the given procedure for each element of the
XIterable
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitNew, New, Newpublic final XGettingEnum<T> elements()
public final T substitute(T item)
substitute in interface Substituter<T>public final void clear()
clear in interface Clearableclear in interface Substituter.Removing<T>public final <P extends Consumer<? super T>> P iterate(P procedure)
XIterableXIterable
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.Iterable.forEach(Consumer).public final boolean contains(T item)
contains in interface Substituter.Queryable<T>public final T lookup(T instance)
lookup in interface Substituter.Queryable<T>public final T remove(T item)
remove in interface Substituter.Removing<T>public final long size()
size in interface Substituter.Queryable<T>public EqHashEnum<T> $elements()
Copyright © 2022 MicroStream Software. All rights reserved.