| Package | Description |
|---|---|
| eu.hanskruse.noaber.patternMatching |
Functional programming style pattern matching implementation.
|
| Modifier and Type | Method and Description |
|---|---|
<R> Case<T,R> |
FunctionalPredicateWrapper.then(Function<W,R> f)
function to execute when the wrapped predicate is true.
|
<R> Case<T,R> |
FunctionalPredicateWrapper.then(R result)
Value to return when the wrapped predicate is true.
|
| Modifier and Type | Method and Description |
|---|---|
<R> Optional<? extends R> |
CaseAcceptor.with(Case<? super T,R>... cases)
Evaluate a set of cases until one has a none Optional.Empty() result.
|
| Constructor and Description |
|---|
PatternMatcher(Case<T,R>... caseValues)
Creates a pattern matcher.
|
Copyright © 2021. All rights reserved.