Package net.jqwik.api
Interface Tuple
-
- All Superinterfaces:
java.lang.Cloneable
,java.io.Serializable
- All Known Implementing Classes:
Tuple.Tuple0
,Tuple.Tuple1
,Tuple.Tuple2
,Tuple.Tuple3
,Tuple.Tuple4
,Tuple.Tuple5
,Tuple.Tuple6
,Tuple.Tuple7
,Tuple.Tuple8
@API(status=STABLE, since="1.0") public interface Tuple extends java.io.Serializable, java.lang.Cloneable
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
Nested Classes Modifier and Type Interface Description static class
Tuple.Tuple0
static class
Tuple.Tuple1<T1>
static class
Tuple.Tuple2<T1,T2>
static class
Tuple.Tuple3<T1,T2,T3>
static class
Tuple.Tuple4<T1,T2,T3,T4>
static class
Tuple.Tuple5<T1,T2,T3,T4,T5>
static class
Tuple.Tuple6<T1,T2,T3,T4,T5,T6>
static class
Tuple.Tuple7<T1,T2,T3,T4,T5,T6,T7>
static class
Tuple.Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static Tuple.Tuple0
empty()
default java.util.List<java.lang.Object>
items()
default java.lang.String
itemsToString()
static Tuple.Tuple0
of()
static <T1> Tuple.Tuple1<T1>
of(T1 v1)
static <T1,T2>
Tuple.Tuple2<T1,T2>of(T1 v1, T2 v2)
static <T1,T2,T3>
Tuple.Tuple3<T1,T2,T3>of(T1 v1, T2 v2, T3 v3)
static <T1,T2,T3,T4>
Tuple.Tuple4<T1,T2,T3,T4>of(T1 v1, T2 v2, T3 v3, T4 v4)
static <T1,T2,T3,T4,T5>
Tuple.Tuple5<T1,T2,T3,T4,T5>of(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5)
static <T1,T2,T3,T4,T5,T6>
Tuple.Tuple6<T1,T2,T3,T4,T5,T6>of(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6)
static <T1,T2,T3,T4,T5,T6,T7>
Tuple.Tuple7<T1,T2,T3,T4,T5,T6,T7>of(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7)
static <T1,T2,T3,T4,T5,T6,T7,T8>
Tuple.Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>of(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8)
int
size()
-
-
-
Method Detail
-
size
int size()
-
items
default java.util.List<java.lang.Object> items()
-
itemsToString
default java.lang.String itemsToString()
-
of
@API(status=EXPERIMENTAL, since="1.3.5") static Tuple.Tuple0 of()
-
empty
@API(status=EXPERIMENTAL, since="1.3.5") static Tuple.Tuple0 empty()
-
of
static <T1> Tuple.Tuple1<T1> of(T1 v1)
-
of
static <T1,T2> Tuple.Tuple2<T1,T2> of(T1 v1, T2 v2)
-
of
static <T1,T2,T3> Tuple.Tuple3<T1,T2,T3> of(T1 v1, T2 v2, T3 v3)
-
of
static <T1,T2,T3,T4> Tuple.Tuple4<T1,T2,T3,T4> of(T1 v1, T2 v2, T3 v3, T4 v4)
-
of
static <T1,T2,T3,T4,T5> Tuple.Tuple5<T1,T2,T3,T4,T5> of(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5)
-
of
static <T1,T2,T3,T4,T5,T6> Tuple.Tuple6<T1,T2,T3,T4,T5,T6> of(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6)
-
of
static <T1,T2,T3,T4,T5,T6,T7> Tuple.Tuple7<T1,T2,T3,T4,T5,T6,T7> of(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7)
-
of
static <T1,T2,T3,T4,T5,T6,T7,T8> Tuple.Tuple8<T1,T2,T3,T4,T5,T6,T7,T8> of(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8)
-
-