|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Function | |
|---|---|
| com.google.common.base | Basic utility libraries and interfaces. |
| Uses of Function in com.google.common.base |
|---|
| Methods in com.google.common.base that return Function | ||
|---|---|---|
static
|
Functions.compose(Function<B,C> g,
Function<A,? extends B> f)
Returns the composition of two functions. |
|
static
|
Functions.constant(E value)
Creates a function that returns value for any input. |
|
static
|
Functions.forMap(java.util.Map<K,? extends V> map,
V defaultValue)
Returns a function which performs a map lookup with a default value. |
|
static
|
Functions.forMap(java.util.Map<K,V> map)
Returns a function which performs a map lookup. |
|
static
|
Functions.forPredicate(Predicate<T> predicate)
Creates a function that returns the same boolean output as the given predicate for all inputs. |
|
static
|
Functions.identity()
Returns the identity function. |
|
static Function<java.lang.Object,java.lang.String> |
Functions.toStringFunction()
Returns a function that calls toString() on its argument. |
|
| Methods in com.google.common.base with parameters of type Function | ||
|---|---|---|
static
|
Suppliers.compose(Function<? super F,T> function,
Supplier<F> supplier)
Returns a new supplier which is the composition of the provided function and supplier. |
|
static
|
Functions.compose(Function<B,C> g,
Function<A,? extends B> f)
Returns the composition of two functions. |
|
static
|
Functions.compose(Function<B,C> g,
Function<A,? extends B> f)
Returns the composition of two functions. |
|
static
|
Predicates.compose(Predicate<B> predicate,
Function<A,? extends B> function)
Returns the composition of a function and a predicate. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||