T - type of the argument.public final class CaseAcceptor<T> extends Object
| Constructor and Description |
|---|
CaseAcceptor(T value) |
| Modifier and Type | Method and Description |
|---|---|
<R> Optional<? extends R> |
with(Case<? super T,R>... cases)
Evaluate a set of cases until one has a none Optional.Empty() result.
|
public CaseAcceptor(T value)
@SafeVarargs public final <R> Optional<? extends R> with(Case<? super T,R>... cases)
R - type of the resultcases - set of casesCopyright © 2021. All rights reserved.