Package | Description |
---|---|
com.hp.mercury.ci.jenkins.plugins.oo.utils |
Modifier and Type | Method and Description |
---|---|
static <R,T> List<R> |
CollectionUtils.map(Collection<T> elements,
Handler<R,T> handler) |
static <R,T> Map<T,R> |
CollectionUtils.mapToMap(Collection<T> elements,
Handler<R,T> handler) |
static <C extends Comparable,T> |
CollectionUtils.max(Collection<T> elements,
Handler<C,T> handler)
sometimes when we want to compare objects according to something that is already comparable,
it's easier to write a handler that generates that comparable than to write a comparator.
|
Constructor and Description |
---|
ListAggregator(Handler<R,T> handler) |
MapAggregator(Handler<R,T> valueCalculator) |
MaxAggregator(Handler<C,T> comparifier) |
Copyright © 2004-2016. All Rights Reserved.