org.osm2world.core.util
public final class MinMaxUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
max(Iterable<T> objects,
Function<T,Double> f)
from an Iterable of objects, this returns the one
with the highest associated value of a function f
|
static <T> T |
min(Iterable<T> objects,
Function<T,Double> f)
from an Iterable of objects, this returns the one
with the lowest associated value of a function f
|
public static final <T> T min(Iterable<T> objects, Function<T,Double> f)
public static final <T> T max(Iterable<T> objects, Function<T,Double> f)