jfun.parsec
public final class ArrayFactories extends Object
Method Summary | |
---|---|
static ArrayFactory<Object> | defaultFactory()
gets and instance of ArrayFactory that simply create Object[]. |
static <E> ArrayFactory<E> | typedFactory(Class<E> etype)
gets and instanceof ArrayFactory that creates T[] for a given element type T. |
Returns: the ArrayFactory instance.
Parameters: etype the element type.
Returns: the ArrayFactory instance.