Modifier and Type | Method and Description |
---|---|
ValueKey.BeforeThen<T,TT> |
or(ValueKey<TT> key)
Adds an alternative "case"-key: the subsequent then-branch will take effect if
the supplied alternative "case" key equals to the selector key in addition to the previous "case"-key
|
ValueKey.BeforeIf<T> |
then(TT value)
Produces a value which will be returned as the chain result if the previous "case"-key matches the "selector"-key
|
ValueKey.BeforeIf<T> |
thenGet(java.util.function.Supplier<? extends TT> fn)
Produces a value which will be returned as the chain result if the previous "case"-key matches the "selector"-key
|
ValueKey.BeforeThen<T,TT> or(ValueKey<TT> key)
key
- an alternative "case"-keyValueKey.BeforeIf<T> then(TT value)
value
- value to be returned, could be nullValueKey.BeforeIf<T> thenGet(java.util.function.Supplier<? extends TT> fn)
fn
- a function to produce a value