Class HList.HCons<Head,Tail extends HList>
java.lang.Object
com.jnape.palatable.lambda.adt.hlist.HList
com.jnape.palatable.lambda.adt.hlist.HList.HCons<Head,Tail>
- Type Parameters:
Head- the head element typeTail- the HList tail type
- Enclosing class:
HList
The consing of a head element to a tail
HList.-
Nested Class Summary
Nested classes/interfaces inherited from class com.jnape.palatable.lambda.adt.hlist.HList
HList.HCons<Head,Tail extends HList>, HList.HNil -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<NewHead> HList.HCons<NewHead, ? extends HList.HCons<Head, Tail>> cons(NewHead newHead) Cons an element onto the front of this HList.final booleanfinal inthashCode()head()The head element of theHList.tail()The remaining tail of theHList; returns an HNil if this is the last element.
-
Field Details
-
head
-
tail
-
-
Constructor Details
-
HCons
-
-
Method Details
-
head
The head element of theHList.- Returns:
- the head element
-
tail
The remaining tail of theHList; returns an HNil if this is the last element.- Returns:
- the tail
-
cons
Description copied from class:HListCons an element onto the front of this HList. -
equals
-
hashCode
public final int hashCode()
-