- Type Parameters:
T
- Class type that is matched by this pattern
R
- Type of the single or composite part this pattern decomposes
- All Superinterfaces:
- java.util.function.Function<T,R>, Function1<T,R>, PartialFunction<T,R>, java.io.Serializable
- All Known Implementing Classes:
- API.Match.Pattern0, API.Match.Pattern1, API.Match.Pattern2, API.Match.Pattern3, API.Match.Pattern4, API.Match.Pattern5, API.Match.Pattern6, API.Match.Pattern7, API.Match.Pattern8
- Enclosing class:
- API.Match<T>
public static interface API.Match.Pattern<T,R>
extends PartialFunction<T,R>
A Pattern is a partial Function
in the sense that a function applications returns an
optional result of type Option<R>
.