Package | Description |
---|---|
javolution.util |
High-performance collection classes with
worst case execution time behavior documented. |
javolution.util.function |
Basic functions for lambda expressions and method references.
|
Modifier and Type | Method and Description |
---|---|
E |
FastCollection.reduce(Reducer<E> reducer)
Performs a reduction of the elements of this collection using the
specified reducer.
|
Modifier and Type | Method and Description |
---|---|
static Reducer<Boolean> |
Reducers.and()
Conditional 'and' operator (returns
true if the collection is
empty). |
static <E> Reducer<E> |
Reducers.any(Class<? extends E> type)
Returns any non-null element of the specified type.
|
static <E> Reducer<E> |
Reducers.max(Comparator<? super E> comparator)
Returns the greatest element of a collection according to the
specified comparator (returns
null if the collection is empty). |
static <E> Reducer<E> |
Reducers.min(Comparator<? super E> comparator)
Returns the smallest element of a collection according to the collection
comparator (returns
null if the collection is empty). |
static Reducer<Boolean> |
Reducers.or()
Conditional 'or' operator (returns
false if the collection is
empty). |
static Reducer<Integer> |
Reducers.sum()
Returns the sum of the specified integers value (returns
0
if the collection is empty). |
Copyright © 2005-2013 Javolution. All Rights Reserved.