Package io.vavr
Interface API.Match.Pattern<T,R>
- Type Parameters:
T
- Class type that is matched by this patternR
- Type of the single or composite part this pattern decomposes
- All Superinterfaces:
Function<T,
,R> Function1<T,
,R> PartialFunction<T,
,R> 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
A Pattern is a partial
Function
in the sense that a function applications returns an
optional result of type Option<R>
.-
Field Summary
Fields inherited from interface io.vavr.PartialFunction
serialVersionUID
-
Method Summary
Methods inherited from interface io.vavr.Function1
andThen, arity, compose, curried, isMemoized, memoized, partial, reversed, tupled
Methods inherited from interface io.vavr.PartialFunction
apply, isDefinedAt, lift