public abstract class HList extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HList.HCons<Head,Tail extends HList>
The consing of a head element to a tail
HList . |
static class |
HList.HNil
The empty
HList . |
Modifier and Type | Method and Description |
---|---|
static <Head,Tail extends HList> |
cons(Head head,
Tail tail)
Static factory method for creating an HList from the given head and tail.
|
abstract <NewHead> HList.HCons<NewHead,? extends HList> |
cons(NewHead newHead)
Cons an element onto the front of this HList.
|
static HList.HNil |
nil()
Static factory method for creating empty HLists.
|
static <Head> SingletonHList<Head> |
singletonHList(Head head)
Static factory method for creating a singleton HList.
|
String |
toString() |
static <_1,_2,_3,_4,_5,_6,_7,_8> |
tuple(_1 _1,
_2 _2,
_3 _3,
_4 _4,
_5 _5,
_6 _6,
_7 _7,
_8 _8)
Static factory method for creating an 8-element HList.
|
static <_1,_2,_3,_4,_5,_6,_7> |
tuple(_1 _1,
_2 _2,
_3 _3,
_4 _4,
_5 _5,
_6 _6,
_7 _7)
Static factory method for creating a 7-element HList.
|
static <_1,_2,_3,_4,_5,_6> |
tuple(_1 _1,
_2 _2,
_3 _3,
_4 _4,
_5 _5,
_6 _6)
Static factory method for creating a 6-element HList.
|
static <_1,_2,_3,_4,_5> |
tuple(_1 _1,
_2 _2,
_3 _3,
_4 _4,
_5 _5)
Static factory method for creating a 5-element HList.
|
static <_1,_2,_3,_4> |
tuple(_1 _1,
_2 _2,
_3 _3,
_4 _4)
Static factory method for creating a 4-element HList.
|
static <_1,_2,_3> Tuple3<_1,_2,_3> |
tuple(_1 _1,
_2 _2,
_3 _3)
Static factory method for creating a 3-element HList.
|
static <_1,_2> Tuple2<_1,_2> |
tuple(_1 _1,
_2 _2)
Static factory method for creating a 2-element HList.
|
public abstract <NewHead> HList.HCons<NewHead,? extends HList> cons(NewHead newHead)
NewHead
- the new head typenewHead
- the new head elementpublic static HList.HNil nil()
public static <Head,Tail extends HList> HList.HCons<Head,Tail> cons(Head head, Tail tail)
Head
- the head typeTail
- the tail typehead
- the head elementtail
- the tail HListpublic static <Head> SingletonHList<Head> singletonHList(Head head)
Head
- the head element typehead
- the head elementpublic static <_1,_2> Tuple2<_1,_2> tuple(_1 _1, _2 _2)
_1
- the head element type_2
- the second element type_1
- the head element_2
- the second elementTuple2
public static <_1,_2,_3> Tuple3<_1,_2,_3> tuple(_1 _1, _2 _2, _3 _3)
_1
- the head element type_2
- the second element type_3
- the third element type_1
- the head element_2
- the second element_3
- the third elementTuple3
public static <_1,_2,_3,_4> Tuple4<_1,_2,_3,_4> tuple(_1 _1, _2 _2, _3 _3, _4 _4)
_1
- the head element type_2
- the second element type_3
- the third element type_4
- the fourth element type_1
- the head element_2
- the second element_3
- the third element_4
- the fourth elementTuple4
public static <_1,_2,_3,_4,_5> Tuple5<_1,_2,_3,_4,_5> tuple(_1 _1, _2 _2, _3 _3, _4 _4, _5 _5)
_1
- the head element type_2
- the second element type_3
- the third element type_4
- the fourth element type_5
- the fifth element type_1
- the head element_2
- the second element_3
- the third element_4
- the fourth element_5
- the fifth elementTuple5
public static <_1,_2,_3,_4,_5,_6> Tuple6<_1,_2,_3,_4,_5,_6> tuple(_1 _1, _2 _2, _3 _3, _4 _4, _5 _5, _6 _6)
_1
- the head element type_2
- the second element type_3
- the third element type_4
- the fourth element type_5
- the fifth element type_6
- the sixth element type_1
- the head element_2
- the second element_3
- the third element_4
- the fourth element_5
- the fifth element_6
- the sixth elementTuple6
public static <_1,_2,_3,_4,_5,_6,_7> Tuple7<_1,_2,_3,_4,_5,_6,_7> tuple(_1 _1, _2 _2, _3 _3, _4 _4, _5 _5, _6 _6, _7 _7)
_1
- the head element type_2
- the second element type_3
- the third element type_4
- the fourth element type_5
- the fifth element type_6
- the sixth element type_7
- the seventh element type_1
- the head element_2
- the second element_3
- the third element_4
- the fourth element_5
- the fifth element_6
- the sixth element_7
- the seventh elementTuple7
public static <_1,_2,_3,_4,_5,_6,_7,_8> Tuple8<_1,_2,_3,_4,_5,_6,_7,_8> tuple(_1 _1, _2 _2, _3 _3, _4 _4, _5 _5, _6 _6, _7 _7, _8 _8)
_1
- the head element type_2
- the second element type_3
- the third element type_4
- the fourth element type_5
- the fifth element type_6
- the sixth element type_7
- the seventh element type_8
- the eighth element type_1
- the head element_2
- the second element_3
- the third element_4
- the fourth element_5
- the fifth element_6
- the sixth element_7
- the seventh element_8
- the eighth elementTuple8