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:
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
public static interface API.Match.Pattern<T,R> extends PartialFunction<T,R>
A Pattern is a partialFunction
in the sense that a function applications returns an optional result of typeOption<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
-
-