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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jnape.palatable.lambda.adt.hlist.HList
HList.HCons<Head,Tail extends HList>, HList.HNil
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <NewHead> HList.HCons<NewHead,? extends HList.HCons<Head,Tail>>
cons(NewHead newHead)
Cons an element onto the front of this HList.boolean
equals(java.lang.Object other)
int
hashCode()
Head
head()
The head element of theHList
.Tail
tail()
The remaining tail of theHList
; returns an HNil if this is the last element.
-
-
-
Method Detail
-
head
public Head head()
The head element of theHList
.- Returns:
- the head element
-
tail
public Tail tail()
The remaining tail of theHList
; returns an HNil if this is the last element.- Returns:
- the tail
-
cons
public <NewHead> HList.HCons<NewHead,? extends HList.HCons<Head,Tail>> cons(NewHead newHead)
Description copied from class:HList
Cons an element onto the front of this HList.
-
equals
public final boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-