![]() |
Adventure at Umalu
22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
|
Classes | |
interface | FilterFunc< T > |
interface | MapFunc< T, R > |
Static Public Member Functions | |
static< T > Iterable< T > | filter (Iterable< T > iterable, FilterFunc< T > lambda) |
static< T, R > Iterable< R > | map (Iterable< T > iterable, MapFunc< T, R > lambda) |
static< T, RextendsT > Iterable< R > | filterType (Iterable< T > iterable, final Class< R > cls) |
static< T > T | first (Iterable< T > iterable) |
static< T > List< T > | toList (Iterable< T > iterable) |
static< T > Set< T > | toSet (Iterable< T > iterable) |
contains methods for manipulating
. Many of these concepts, such as map and reduce, were borrowed from functional programming.
|
static |
Returns a new
which is all the elements of the given
for which the provided
returns true.
<T> | the type of the elements being filtered |
iterable | the Iterable<T>
|
lambda | returns true for any element of iterable to be retained |
|
static |
Returns a new
containing only the elements of the given
which are of type
.
<T> | the type of the elements being filtered |
<R> | the type of the elements to be retained |
iterable | the iterable being queried |
cls | the class of R
|
|
static |
Returns the first element of the given
.
<T> | the type of the element being selected |
iterable | the Iterable<T>
|
|
static |
Returns a new
which contains every element of the given
mapped by the provided
.
<T> | the type of the elements being mapped |
<R> | the type the elements are being mapped to |
iterable | the iterable being mapped |
lambda | the mapping function |
|
static |
Converts an
to a new
.
<T> | the type of the elements being converted to a list |
iterable | the Iterable<T>
|
|
static |
Converts an
to a new
.
<T> | the type of the elements being converted to a set |
iterable | the Iterable<T>
|