- Type Parameters:
T - the type of the argument
R - the type of the optional result
- All Superinterfaces:
- Function<T,Optional<R>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface Case<T,R>
extends Function<T,Optional<R>>
Case Clause for pattern matching.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- Hans Kruse