| Modifier and Type | Method and Description |
|---|---|
static <U,V> Function<U,V> |
asFunction(Supplier<V> supplier)
Creates a function ignoring it's parameter and just returning the supplier's value.
|
static <T> Supplier<T> |
constant(T t)
Returns a constant supplier.
|
static <U,V> Supplier<V> |
mapping(Function<? super U,? extends V> mapper,
Supplier<U> supplier)
Maps the output of an supplier using a function.
|
public static <T> Supplier<T> constant(T t)
T - the type of the supplied valuet - the constantpublic static <U,V> Supplier<V> mapping(Function<? super U,? extends V> mapper, Supplier<U> supplier)
U - The original suppliers return typeV - The new suppliers return typesupplier - the original suppliermapper - the mapperCopyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.