public static enum ListBox.Instance extends Enum<instance ListBox<_>> implements Traversable ListBox<_>
Traversable type class instance for ListBox.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T,R> ListBox<R> |
map((? super T) -> ? extends R func,
ListBox<T> ts)
Maps the contents of
ts from T to R using the func. |
<F extends K1,A,B> |
traverse(Applicative F applicative,
(A) -> F<B> function,
ListBox<A> input)
Applies a function that produces an
Applicative effect to each value contained within
input, then builds a container with an equivalent structure containing the (unboxed) results. |
static instance ListBox<_> |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static instance ListBox<_>[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfflippublic static final instance ListBox<_> INSTANCE
public static instance ListBox<_>[] values()
for (ListBox.Instance c : ListBox.Instance.values()) System.out.println(c);
public static instance ListBox<_> valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic <T,R> ListBox<R> map((? super T) -> ? extends R func, ListBox<T> ts)
Functorts from T to R using the func.public <F extends K1,A,B> F<ListBox<B>> traverse(Applicative F applicative, (A) -> F<B> function, ListBox<A> input)
TraversableApplicative effect to each value contained within
input, then builds a container with an equivalent structure containing the (unboxed) results.traverse in interface Traversable ListBox<_>F - The type of the effect.A - The input type.B - The output type.applicative - An instance of the Applicative type class which defines the behavior of F.function - The function to apply.input - The input container.function to each element, if the function was
successful for every element.