Package io.vavr
Class API.Match.Pattern8<T,T1,T2,T3,T4,T5,T6,T7,T8>
java.lang.Object
io.vavr.API.Match.Pattern8<T,T1,T2,T3,T4,T5,T6,T7,T8>
- Type Parameters:
T- Class type that is matched by this patternT1- Member type 1 of the composite part this pattern decomposesT2- Member type 2 of the composite part this pattern decomposesT3- Member type 3 of the composite part this pattern decomposesT4- Member type 4 of the composite part this pattern decomposesT5- Member type 5 of the composite part this pattern decomposesT6- Member type 6 of the composite part this pattern decomposesT7- Member type 7 of the composite part this pattern decomposesT8- Member type 8 of the composite part this pattern decomposes
- All Implemented Interfaces:
API.Match.Pattern<T,,Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>> Function1<T,,Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>> PartialFunction<T,,Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>> Serializable,Function<T,Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>>
public abstract static class API.Match.Pattern8<T,T1,T2,T3,T4,T5,T6,T7,T8>
extends Object
implements API.Match.Pattern<T,Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>>
A
API.Match.Pattern implementation for the pattern with 8 intermediate types- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,T1 extends U1, U1, T2 extends U2, U2, T3 extends U3, U3, T4 extends U4, U4, T5 extends U5, U5, T6 extends U6, U6, T7 extends U7, U7, T8 extends U8, U8>
API.Match.Pattern8<T, T1, T2, T3, T4, T5, T6, T7, T8> of(@NonNull Class<? super T> type, @NonNull API.Match.Pattern<T1, ?> p1, @NonNull API.Match.Pattern<T2, ?> p2, @NonNull API.Match.Pattern<T3, ?> p3, @NonNull API.Match.Pattern<T4, ?> p4, @NonNull API.Match.Pattern<T5, ?> p5, @NonNull API.Match.Pattern<T6, ?> p6, @NonNull API.Match.Pattern<T7, ?> p7, @NonNull API.Match.Pattern<T8, ?> p8, @NonNull Function<T, Tuple8<U1, U2, U3, U4, U5, U6, U7, U8>> unapply) Static factory for aAPI.Match.Pattern8based on aClass, 8API.Match.Patterns to decompose it to and a mapper to aggregate result back into aTuple8Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vavr.Function1
andThen, arity, compose, compose1, curried, isMemoized, memoized, partial, reversed, tupledMethods inherited from interface io.vavr.PartialFunction
apply, isDefinedAt, lift
-
Constructor Details
-
Pattern8
protected Pattern8()Creates a newPattern8.This constructor is protected because
Pattern8is abstract and intended to be subclassed rather than instantiated directly.
-
-
Method Details
-
of
public static <T,T1 extends U1, API.Match.Pattern8<T,U1, T2 extends U2, U2, T3 extends U3, U3, T4 extends U4, U4, T5 extends U5, U5, T6 extends U6, U6, T7 extends U7, U7, T8 extends U8, U8> T1, ofT2, T3, T4, T5, T6, T7, T8> (@NonNull Class<? super T> type, @NonNull API.Match.Pattern<T1, ?> p1, @NonNull API.Match.Pattern<T2, ?> p2, @NonNull API.Match.Pattern<T3, ?> p3, @NonNull API.Match.Pattern<T4, ?> p4, @NonNull API.Match.Pattern<T5, ?> p5, @NonNull API.Match.Pattern<T6, ?> p6, @NonNull API.Match.Pattern<T7, ?> p7, @NonNull API.Match.Pattern<T8, ?> p8, @NonNull Function<T, Tuple8<U1, U2, U3, U4, U5, U6, U7, U8>> unapply) Static factory for aAPI.Match.Pattern8based on aClass, 8API.Match.Patterns to decompose it to and a mapper to aggregate result back into aTuple8- Type Parameters:
T- Class type matched by this patternT1- Member type 1 of the composite part this pattern decomposesU1- Member type 1 of the Tuple the composite part of this pattern decomposes toT2- Member type 2 of the composite part this pattern decomposesU2- Member type 2 of the Tuple the composite part of this pattern decomposes toT3- Member type 3 of the composite part this pattern decomposesU3- Member type 3 of the Tuple the composite part of this pattern decomposes toT4- Member type 4 of the composite part this pattern decomposesU4- Member type 4 of the Tuple the composite part of this pattern decomposes toT5- Member type 5 of the composite part this pattern decomposesU5- Member type 5 of the Tuple the composite part of this pattern decomposes toT6- Member type 6 of the composite part this pattern decomposesU6- Member type 6 of the Tuple the composite part of this pattern decomposes toT7- Member type 7 of the composite part this pattern decomposesU7- Member type 7 of the Tuple the composite part of this pattern decomposes toT8- Member type 8 of the composite part this pattern decomposesU8- Member type 8 of the Tuple the composite part of this pattern decomposes to- Parameters:
type-Classto build the pattern fromp1-API.Match.Patternmatching the intermediate type 1p2-API.Match.Patternmatching the intermediate type 2p3-API.Match.Patternmatching the intermediate type 3p4-API.Match.Patternmatching the intermediate type 4p5-API.Match.Patternmatching the intermediate type 5p6-API.Match.Patternmatching the intermediate type 6p7-API.Match.Patternmatching the intermediate type 7p8-API.Match.Patternmatching the intermediate type 8unapply- Mapper function from T to aTuple8- Returns:
- new Pattern8
-