Class Index.N<Target, Head, List extends HList.HCons<?,?> , PreviousIndex extends Index<Target,List> >
java.lang.Object
com.jnape.palatable.lambda.adt.hlist.Index<Target, HList.HCons<Head, ? extends List>>
com.jnape.palatable.lambda.adt.hlist.Index.N<Target, Head, List, PreviousIndex>
- Enclosing class:
Index<Target, TargetList extends HList.HCons<?,?>>
private static final class Index.N<Target, Head, List extends HList.HCons<?,?>, PreviousIndex extends Index<Target,List>>
extends Index<Target, HList.HCons<Head, ? extends List>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
previousIndex
-
-
Constructor Details
-
N
-
-
Method Details
-
get
Description copied from class:IndexRetrieve the value at this index in hList.- Specified by:
getin classIndex<Target, HList.HCons<Head, ? extends List extends HList.HCons<?,?>>> - Parameters:
hList- the hList- Returns:
- the value at this index
-
set
Description copied from class:IndexSet a new value of the same type at this index in anHList.- Specified by:
setin classIndex<Target, HList.HCons<Head, ? extends List extends HList.HCons<?,?>>> - Type Parameters:
L- the inferred tail type of the HList- Parameters:
newElement- the new valuehList- the HList- Returns:
- the updated HList
-