|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.util.concurrent.Functions
public final class Functions
Method Summary | ||
---|---|---|
static
|
fromSupplier(com.google.common.base.Supplier<R> supplier)
Get a function that uses the Supplier as a factory for all inputs. |
|
static
|
identity()
Get a function that always returns the input. |
|
static
|
toGoogleFunction(Function<T,R> function)
Map to a google-collections Function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <D,R> Function<D,R> fromSupplier(@NotNull com.google.common.base.Supplier<R> supplier)
D
- the key type, ignoredR
- the result typesupplier
- called for all inputs
public static <T> Function<T,T> identity()
T
- the type of the input and the output for the function.
public static <T,R> com.google.common.base.Function<T,R> toGoogleFunction(Function<T,R> function)
T
- input typeR
- output typefunction
- the function to map
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |