Package net.jqwik.api
Interface Tuple
- All Superinterfaces:
Cloneable
,Serializable
- All Known Implementing Classes:
Tuple.Tuple0
,Tuple.Tuple1
,Tuple.Tuple2
,Tuple.Tuple3
,Tuple.Tuple4
,Tuple.Tuple5
,Tuple.Tuple6
,Tuple.Tuple7
,Tuple.Tuple8
Typed Tuples are very convenient containers to have, especially in the context of
generating dependent values. It's a shame Java does not have them by default.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
static class
static class
Tuple.Tuple4<T1,
T2, T3, T4> static class
static class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic Tuple.Tuple0
empty()
items()
default String
static Tuple.Tuple0
of()
static <@Nullable T1>
Tuple.Tuple1<T1>of
(@Nullable T1 v1) static <@Nullable T1,
@Nullable T2>
Tuple.Tuple2<T1,T2> of
(@Nullable T1 v1, @Nullable T2 v2) static <@Nullable T1,
@Nullable T2, @Nullable T3>
Tuple.Tuple3<T1,T2, T3> of
(@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3) static <@Nullable T1,
@Nullable T2, @Nullable T3, @Nullable T4>
Tuple.Tuple4<T1,T2, T3, T4> of
(@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3, @Nullable T4 v4) static <@Nullable T1,
@Nullable T2, @Nullable T3, @Nullable T4, @Nullable T5>
Tuple.Tuple5<T1,T2, T3, T4, T5> of
(@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3, @Nullable T4 v4, @Nullable T5 v5) static <@Nullable T1,
@Nullable T2, @Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6>
Tuple.Tuple6<T1,T2, T3, T4, T5, T6> of
(@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3, @Nullable T4 v4, @Nullable T5 v5, @Nullable T6 v6) static <@Nullable T1,
@Nullable T2, @Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6, @Nullable T7>
Tuple.Tuple7<T1,T2, T3, T4, T5, T6, T7> of
(@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3, @Nullable T4 v4, @Nullable T5 v5, @Nullable T6 v6, @Nullable T7 v7) static <@Nullable T1,
@Nullable T2, @Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6, @Nullable T7, @Nullable T8>
Tuple.Tuple8<T1,T2, T3, T4, T5, T6, T7, T8> of
(@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3, @Nullable T4 v4, @Nullable T5 v5, @Nullable T6 v6, @Nullable T7 v7, @Nullable T8 v8) int
size()
-
Method Details
-
size
int size() -
items
-
itemsToString
-
of
-
empty
-
of
-
of
-
of
static <@Nullable T1,@Nullable T2, Tuple.Tuple3<T1,@Nullable T3> T2, ofT3> (@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3) -
of
static <@Nullable T1,@Nullable T2, Tuple.Tuple4<T1,@Nullable T3, @Nullable T4> T2, ofT3, T4> (@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3, @Nullable T4 v4) -
of
static <@Nullable T1,@Nullable T2, Tuple.Tuple5<T1,@Nullable T3, @Nullable T4, @Nullable T5> T2, ofT3, T4, T5> (@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3, @Nullable T4 v4, @Nullable T5 v5) -
of
static <@Nullable T1,@Nullable T2, Tuple.Tuple6<T1,@Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6> T2, ofT3, T4, T5, T6> (@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3, @Nullable T4 v4, @Nullable T5 v5, @Nullable T6 v6) -
of
static <@Nullable T1,@Nullable T2, Tuple.Tuple7<T1,@Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6, @Nullable T7> T2, ofT3, T4, T5, T6, T7> (@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3, @Nullable T4 v4, @Nullable T5 v5, @Nullable T6 v6, @Nullable T7 v7) -
of
static <@Nullable T1,@Nullable T2, Tuple.Tuple8<T1,@Nullable T3, @Nullable T4, @Nullable T5, @Nullable T6, @Nullable T7, @Nullable T8> T2, ofT3, T4, T5, T6, T7, T8> (@Nullable T1 v1, @Nullable T2 v2, @Nullable T3 v3, @Nullable T4 v4, @Nullable T5 v5, @Nullable T6 v6, @Nullable T7 v7, @Nullable T8 v8)
-