W - type of the function result of the FunctionalPredicateT - type of the predicate argumentpublic class FunctionalPredicateWrapper<T,W> extends Object
| Constructor and Description |
|---|
FunctionalPredicateWrapper(FunctionalPredicate<T,W> value)
Creates a PredicateWrapper.
|
| Modifier and Type | Method and Description |
|---|---|
<R> Case<T,R> |
then(Function<W,R> f)
function to execute when the wrapped predicate is true.
|
<R> Case<T,R> |
then(R result)
Value to return when the wrapped predicate is true.
|
public FunctionalPredicateWrapper(FunctionalPredicate<T,W> value)
value - FunctionalPredicate to wrap.Copyright © 2021. All rights reserved.