public final class FunctionSupport extends Object
Modifier | Constructor and Description |
---|---|
private |
FunctionSupport()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static <T1,T2> com.google.common.base.Function<T1,T2> |
constant(T2 target)
Creates a function that returns a constant value, like
Functions.constant(Object) , but
with the type of input parameterized as well as the output. |
@Nonnull public static <T1,T2> com.google.common.base.Function<T1,T2> constant(@Nonnull T2 target)
Functions.constant(Object)
, but
with the type of input parameterized as well as the output.T1
- type of object the function needs to act onT2
- type of object being returnedtarget
- the value to return from the functionCopyright © 1999–2016. All rights reserved.