Package org.wildfly.clustering.function
Interface Supplier<T>
- Type Parameters:
T- the supplied type
- All Superinterfaces:
Supplier<T>
An enhanced supplier.
- Author:
- Paul Ferraro
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault <V> Supplier<V>Returns a supplier that returns the value this function mapped via the specified function.static <T> Supplier<T>Returns a supplier that returns null after invoking the specified task.static <T> Supplier<T>of(T value) Returns a supplier that always returns the specified value.
-
Field Details
-
NULL
-
-
Method Details
-
map
Returns a supplier that returns the value this function mapped via the specified function.- Type Parameters:
V- the mapped value type- Parameters:
mapper- a mapping function- Returns:
- a supplier that returns the value this function mapped via the specified function.
-
of
Returns a supplier that always returns the specified value.- Type Parameters:
T- the supplied type- Parameters:
value- the supplied value- Returns:
- a supplier that always returns the specified value.
-
of
Returns a supplier that returns null after invoking the specified task.- Type Parameters:
T- the supplied type- Parameters:
task- the task to run- Returns:
- a supplier that returns null after invoking the specified task.
-