public final class TcSuppliers extends Object
Supplier.| Modifier and Type | Method and Description |
|---|---|
static <F,T> com.google.common.base.Supplier<T> |
fromFunction(com.google.common.base.Function<F,T> function,
F argument) |
static <T> com.google.common.base.Supplier<T> |
getFromMap(Map<?,?> map,
Object key) |
static <T> com.google.common.base.Supplier<T> |
memoize(com.google.common.base.Supplier<T> supplier) |
static <T> com.google.common.base.Supplier<T> |
singleton(T value) |
public static <F,T> com.google.common.base.Supplier<T> fromFunction(com.google.common.base.Function<F,T> function,
F argument)
public static <T> com.google.common.base.Supplier<T> singleton(T value)
public static <T> com.google.common.base.Supplier<T> memoize(com.google.common.base.Supplier<T> supplier)
Copyright © 2009-2012 TranceCode. All Rights Reserved.