Package io.vavr
Class API.Match.Case2<T,T1,T2,R>
java.lang.Object
io.vavr.API.Match.Case2<T,T1,T2,R>
- All Implemented Interfaces:
API.Match.Case<T,
,R> Function1<T,
,R> PartialFunction<T,
,R> Serializable
,Function<T,
R>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiFunction
<? super T1, ? super T2, ? extends R> private final API.Match.Pattern2
<T, T1, T2> private static final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Case2
(API.Match.Pattern2<T, T1, T2> pattern, BiFunction<? super T1, ? super T2, ? extends R> f) -
Method Summary
Modifier and TypeMethodDescriptionApplies this function to the given argument and returns the result.boolean
isDefinedAt
(T obj) Tests if a value is contained in the function's domain.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vavr.Function1
andThen, arity, compose, curried, isMemoized, memoized, partial, reversed, tupled
Methods inherited from interface io.vavr.PartialFunction
lift
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
pattern
-
f
-
-
Constructor Details
-
Case2
-
-
Method Details
-
apply
Description copied from interface:PartialFunction
Applies this function to the given argument and returns the result. -
isDefinedAt
Description copied from interface:PartialFunction
Tests if a value is contained in the function's domain.- Specified by:
isDefinedAt
in interfacePartialFunction<T,
T1> - Parameters:
obj
- a potential function argument- Returns:
- true, if the given value is contained in the function's domain, false otherwise
-