|
Copyright 2008 - 2010 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfj.data.hlist.HList<A>
A - The specific type of the list, as a subtype of HListpublic abstract class HList<A extends HList<A>>
Type-safe heterogeneous lists.
| Nested Class Summary | |
|---|---|
static class |
HList.Apply<F$,A,R>
Type-level function application operators. |
static class |
HList.HAppend<A,B,C>
The concatenation of two heterogeneous lists. |
static class |
HList.HCons<E,L extends HList<L>>
The nonempty list |
static class |
HList.HFoldr<G,V,L,R>
The catamorphism over heterogeneous lists. |
static class |
HList.HNil
The empty list |
| Constructor Summary | |
|---|---|
protected |
HList()
|
| Method Summary | ||
|---|---|---|
static
|
cons(E e,
L l)
Returns a heterogeneous list consisting of an element and another list. |
|
abstract
|
extend(E e)
Extends (cons) this list by prepending the given element, returning a new list. |
|
abstract
|
extender()
|
|
static HList.HNil |
nil()
Returns the empty list. |
|
static
|
single(E e)
Returns a heterogeneous list consisting of a single element. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected HList()
| Method Detail |
|---|
public abstract <E> HList.HCons<E,A> extend(E e)
e - an element to prepend to this list.
public abstract <E> HList.Apply<Unit,P2<E,A>,HList.HCons<E,A>> extender()
public static HList.HNil nil()
public static <E,L extends HList<L>> HList.HCons<E,L> cons(E e,
L l)
e - an element to put in a list.l - the rest of the list.
public static <E> HList.HCons<E,HList.HNil> single(E e)
e - an element to put in a list
|
Copyright 2008 - 2010 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||