Package | Description |
---|---|
com.google.common.base |
Basic utility libraries and interfaces.
|
Modifier and Type | Field and Description |
---|---|
(package private) V |
Functions.ForMapWithDefault.defaultValue |
(package private) T |
Suppliers.SupplierOfInstance.instance |
private T |
Equivalence.Wrapper.reference |
private E |
Functions.ConstantFunction.value |
Modifier and Type | Method and Description |
---|---|
C |
Functions.FunctionComposition.apply(A a) |
T |
Functions.SupplierFunction.apply(F input) |
T |
Function.apply(F input) |
V |
Functions.FunctionForMapNoDefault.apply(K key) |
V |
Functions.ForMapWithDefault.apply(K key) |
E |
Functions.ConstantFunction.apply(java.lang.Object from) |
T |
Supplier.get()
Retrieves an instance of the appropriate type.
|
T |
Equivalence.Wrapper.get()
Returns the (possibly null) reference wrapped by this instance.
|
T |
Suppliers.SupplierComposition.get() |
T |
Suppliers.MemoizingSupplier.get() |
T |
Suppliers.NonSerializableMemoizingSupplier.get() |
T |
Suppliers.ExpiringMemoizingSupplier.get() |
T |
Suppliers.SupplierOfInstance.get() |
T |
Suppliers.ThreadSafeSupplier.get() |
T |
AbstractIterator.next() |
(package private) static <T> T |
NullnessCasts.uncheckedCastNullableTToT(T t)
Accepts a
@Nullable T and returns a plain T , without performing any check that
that conversion is safe. |
Modifier and Type | Method and Description |
---|---|
boolean |
Predicates.CompositionPredicate.apply(A a) |
C |
Functions.FunctionComposition.apply(A a) |
T |
Functions.SupplierFunction.apply(F input) |
T |
Function.apply(F input) |
V |
Functions.FunctionForMapNoDefault.apply(K key) |
V |
Functions.ForMapWithDefault.apply(K key) |
boolean |
Predicates.NotPredicate.apply(T t) |
boolean |
Predicates.AndPredicate.apply(T t) |
boolean |
Predicates.OrPredicate.apply(T t) |
boolean |
Predicates.InstanceOfPredicate.apply(T o) |
boolean |
Predicates.InPredicate.apply(T t) |
java.lang.Boolean |
Functions.PredicateFunction.apply(T t) |
boolean |
Predicate.apply(T input)
Returns the result of applying this predicate to
input (Java 8 users, see notes in the
class documentation above). |
static <E> Function<java.lang.Object,E> |
Functions.constant(E value)
Returns a function that ignores its input and always returns
value . |
static <T> Predicate<T> |
Predicates.equalTo(T target)
Returns a predicate that evaluates to
true if the object being tested equals()
the given target or both are null. |
static <K,V> Function<K,V> |
Functions.forMap(java.util.Map<K,? extends V> map,
V defaultValue)
Returns a function which performs a map lookup with a default value.
|
static <T> Supplier<T> |
Suppliers.ofInstance(T instance)
Returns a supplier that always supplies
instance . |
default boolean |
Predicate.test(T input) |
<S extends T> |
Equivalence.wrap(S reference)
Returns a wrapper of
reference that implements Object.equals() such that wrap(a).equals(wrap(b)) if and only if equivalent(a,
b) . |
Constructor and Description |
---|
ConstantFunction(E value) |
ForMapWithDefault(java.util.Map<K,? extends V> map,
V defaultValue) |
SupplierOfInstance(T instance) |
Wrapper(Equivalence<? super T> equivalence,
T reference) |