| Constructor and Description |
|---|
Boxes() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Box<T> |
join(Box<Box<T>> box)
Conventional monad join operator.
|
static <T> Box<T> |
pure(T value)
Yields Boxes.pure() of a value.
|
static <T> Iterator<Box<T>> |
pures(Iterable<T> values)
Creates an iterator transforming values from the source iterable into
pure() Box
|
static <T> Iterator<Box<T>> |
pures(Iterator<T> values)
Creates an iterator transforming values from the source iterator into
pure() Box
|
static <T> Iterator<Box<T>> |
pures(T... values)
Creates an iterator transforming values from the source array into
pure() Box
|
static <T> Iterator<Box<T>> |
pures(T value)
Creates a singleton iterator yielding pure() Box
|
static <T> Iterator<Box<T>> |
pures(T first,
T second)
Creates an iterator yielding values pure() Box
|
static <T> Iterator<Box<T>> |
pures(T first,
T second,
T third)
Creates an iterator yielding values pure() Box
|
public static <T> Box<T> pure(T value)
Boxes.pure(1) -> Box.of(1)T - the value typevalue - the value to be transformedpublic static <T> Iterator<Box<T>> pures(Iterator<T> values)
Boxes.pures([1,2,3]) -> [Box 1, Box 2, Box 3]T - the iterator element typevalues - the source iteratorpublic static <T> Iterator<Box<T>> pures(Iterable<T> values)
Boxes.pures([1,2,3]) -> [Box 1, Box 2, Box 3]T - the iterator element typevalues - the source iteratorpublic static <T> Iterator<Box<T>> pures(T value)
Boxes.pures(1) -> [Box 1]T - the element typevalue - the source valuepublic static <T> Iterator<Box<T>> pures(T first, T second)
Boxes.pures(1, 2) -> [Box 1, Box 2]T - the elements typefirst - the first elementsecond - the second elementpublic static <T> Iterator<Box<T>> pures(T first, T second, T third)
Boxes.pures(1, 2, 3) -> [Box 1, Box 2, Box 3]T - the elements typefirst - the first elementsecond - the second elementthird - the third elementpublic static <T> Iterator<Box<T>> pures(T... values)
Boxes.pures([1,2,3]) -> [Box 1, Box 2, Box 3]T - the iterator element typevalues - the source iteratorpublic static <T> Box<T> join(Box<Box<T>> box)
T - the value type parameterbox - the source monadCopyright © 2016. All rights reserved.