Class API.Match.Pattern0<T>
java.lang.Object
io.vavr.API.Match.Pattern0<T>
- Type Parameters:
T- Class type that is matched by this pattern
- All Implemented Interfaces:
API.Match.Pattern<T,T>, Function1<T, T>, PartialFunction<T, T>, Serializable, Function<T, T>
A
API.Match.Pattern implementation for the simplest pattern- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final API.Match.Pattern0<Object> private static final longThe serial version UID for serialization. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> API.Match.Pattern0<T> any()The greediest match, a catch-allstatic <T> API.Match.Pattern0<T> Static factory for aAPI.Match.Pattern0based on aClassMethods 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
apply, isDefinedAt, lift
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDThe serial version UID for serialization.- See Also:
-
ANY
-
-
Constructor Details
-
Pattern0
protected Pattern0()Creates a newPattern0.This constructor is protected because
Pattern0is abstract and intended to be subclassed rather than instantiated directly.
-
-
Method Details
-
any
The greediest match, a catch-all- Type Parameters:
T- Class type that is matched by this pattern- Returns:
- Pattern0
-
of
Static factory for aAPI.Match.Pattern0based on aClass- Type Parameters:
T- Class type matched by this pattern- Parameters:
type-Classto build the pattern from- Returns:
- new Pattern0
-