Class API.Match.Case1<T,T1,R>
java.lang.Object
io.vavr.API.Match.Case1<T,T1,R>
- Type Parameters:
T- Type of the value being matchedT1- Intermediate type 1R- Return value type
- All Implemented Interfaces:
API.Match.Case<T,R>, Function1<T, R>, PartialFunction<T, R>, Serializable, Function<T, R>
API.Match.Case implementation for a case with 1 intermediate type- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final API.Match.Pattern1<T, T1> private static final longThe serial version UID for serialization. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies this function to the given argument and returns the result.booleanisDefinedAt(T obj) Tests whether a value is contained in the function's domain.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Function1
andThen, arity, compose, compose1, curried, isMemoized, memoized, partial, reversed, tupledMethods inherited from interface PartialFunction
lift
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDThe serial version UID for serialization.- See Also:
-
pattern
-
f
-
-
Constructor Details
-
Case1
-
-
Method Details
-
apply
Description copied from interface:PartialFunctionApplies this function to the given argument and returns the result. -
isDefinedAt
Description copied from interface:PartialFunctionTests whether a value is contained in the function's domain.- Specified by:
isDefinedAtin interfacePartialFunction<T,T1> - Parameters:
obj- a potential input to the function- Returns:
trueif the given value is contained in the function's domain,falseotherwise
-