Package io.vavr
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>,java.io.Serializable,java.util.function.Function<T,T>
public abstract static class API.Match.Pattern0<T> extends java.lang.Object implements API.Match.Pattern<T,T>
AAPI.Match.Patternimplementation for the simplest pattern- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static API.Match.Pattern0<java.lang.Object>ANYprivate static longserialVersionUIDThe serial version UID for serialization.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPattern0()Creates a newPattern0.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> API.Match.Pattern0<T>any()The greediest match, a catch-allstatic <T> API.Match.Pattern0<T>of(@NonNull java.lang.Class<? super T> type)Static factory for aAPI.Match.Pattern0based on aClass-
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, compose1, curried, isMemoized, memoized, partial, reversed, tupled
-
Methods inherited from interface io.vavr.PartialFunction
apply, isDefinedAt, lift
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The serial version UID for serialization.- See Also:
- Constant Field Values
-
ANY
private static final API.Match.Pattern0<java.lang.Object> ANY
-
-
Method Detail
-
any
public static <T> API.Match.Pattern0<T> any()
The greediest match, a catch-all- Type Parameters:
T- Class type that is matched by this pattern- Returns:
- Pattern0
-
of
public static <T> API.Match.Pattern0<T> of(@NonNull java.lang.Class<? super T> type)
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
-
-