Class Index.Z<Target>
java.lang.Object
com.jnape.palatable.lambda.adt.hlist.Index<Target,HList.HCons<Target,?>>
com.jnape.palatable.lambda.adt.hlist.Index.Z<Target>
- Enclosing class:
Index<Target,
TargetList extends HList.HCons<?, ?>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Z
private Z()
-
-
Method Details
-
get
Description copied from class:Index
Retrieve the value at this index in hList.- Specified by:
get
in classIndex<Target,
HList.HCons<Target, ?>> - Parameters:
hList
- the hList- Returns:
- the value at this index
-
set
Description copied from class:Index
Set a new value of the same type at this index in anHList
.- Specified by:
set
in classIndex<Target,
HList.HCons<Target, ?>> - Type Parameters:
L
- the inferred tail type of the HList- Parameters:
newElement
- the new valuehList
- the HList- Returns:
- the updated HList
-
instance
-