Javolution 6.0.0 java
|
Classes | |
class | AndReducer |
class | AnyReducer |
class | MaxReducer |
class | MinReducer |
class | OrReducer |
class | SumReducer |
Static Public Member Functions | |
static< E > Reducer< E > | any (Class<? extends E > type) |
static< E > Reducer< E > | max (Comparator<? super E > comparator) |
static< E > Reducer< E > | min (Comparator<? super E > comparator) |
static Reducer< Boolean > | and () |
static Reducer< Boolean > | or () |
static Reducer< Integer > | sum () |
Private Member Functions | |
Reducers () | |
A set of useful reducers of collection elements.
Definition at line 30 of file Reducers.java.
|
private |
Definition at line 33 of file Reducers.java.
|
static |
Conditional 'and' operator (returns
if the collection is empty). This operator stops iterating as soon as a
value is found.
Definition at line 155 of file Reducers.java.
|
static |
Returns any non-null element of the specified type. This reducer stops iterating as soon as an element with the matching type is found.
Definition at line 42 of file Reducers.java.
Referenced by javolution.util.FastCollection< E >.any().
|
static |
Returns the greatest element of a collection according to the specified comparator (returns
if the collection is empty).
comparator | the comparator to use for comparison. |
Definition at line 80 of file Reducers.java.
Referenced by javolution.util.FastCollection< E >.max().
|
static |
Returns the smallest element of a collection according to the collection comparator (returns
if the collection is empty).
Definition at line 117 of file Reducers.java.
Referenced by javolution.util.FastCollection< E >.min().
|
static |
Conditional 'or' operator (returns
if the collection is empty). This operator stops iterating as soon as a
value is found.
Definition at line 183 of file Reducers.java.
|
static |
Returns the sum of the specified integers value (returns
if the collection is empty).
Definition at line 210 of file Reducers.java.