| Modifier and Type | Method and Description |
|---|---|
<AFTER> SupplierWrapper<AFTER> |
andThen(Function<? super OUT,AFTER> after)
Returns a composed supplier wrapper that first gets this supplier result, and then applies
the after function to it.
|
static <OUT> SupplierWrapper<OUT> |
constant(OUT result)
Returns a supplier wrapper always returning the same result.
The returned object will support concatenation and comparison. |
boolean |
equals(Object o) |
OUT |
get()
Gets a result.
|
int |
hashCode() |
boolean |
hasStaticContext()
Checks if the supplier and functions wrapped by this instance have a static context.
|
@NotNull public static <OUT> SupplierWrapper<OUT> constant(OUT result)
OUT - the output data type.result - the result.@NotNull public <AFTER> SupplierWrapper<AFTER> andThen(@NotNull Function<? super OUT,AFTER> after)
AFTER - the type of output of the after function.after - the function to apply after this function is applied.public boolean hasStaticContext()