Uses of Annotation Interface
com.google.common.base.ParametricNullness
Packages that use ParametricNullness
-
Uses of ParametricNullness in com.google.common.base
Fields in com.google.common.base with annotations of type ParametricNullnessModifier and TypeFieldDescription(package private) final V
Functions.ForMapWithDefault.defaultValue
(package private) final T
Suppliers.SupplierOfInstance.instance
private final T
Equivalence.Wrapper.reference
private final E
Functions.ConstantFunction.value
Methods in com.google.common.base with annotations of type ParametricNullnessModifier and TypeMethodDescriptionEquivalence.Wrapper.get()
Returns the (possibly null) reference wrapped by this instance.Supplier.get()
Retrieves an instance of the appropriate type.Suppliers.ExpiringMemoizingSupplier.get()
Suppliers.MemoizingSupplier.get()
Suppliers.NonSerializableMemoizingSupplier.get()
Suppliers.SupplierComposition.get()
Suppliers.SupplierOfInstance.get()
Suppliers.ThreadSafeSupplier.get()
final T
AbstractIterator.next()
(package private) static <T> T
NullnessCasts.uncheckedCastNullableTToT
(T t) Accepts a@Nullable T
and returns a plainT
, without performing any check that that conversion is safe.Method parameters in com.google.common.base with annotations of type ParametricNullnessModifier and TypeMethodDescriptionboolean
Returns the result of applying this predicate toinput
(Java 8+ users, see notes in the class documentation above).boolean
boolean
boolean
boolean
boolean
boolean
Functions.constant
(E value) Returns a function that ignores its input and always returnsvalue
.static <T> Predicate
<T> Predicates.equalTo
(T target) Returns a predicate that evaluates totrue
if the object being testedequals()
the given target or both are null.static <K,
V> Function <K, V> 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 suppliesinstance
.default boolean
final <S extends T>
Equivalence.Wrapper<S> Equivalence.wrap
(S reference) Returns a wrapper ofreference
that implementsObject.equals()
such thatwrap(a).equals(wrap(b))
if and only ifequivalent(a, b)
.Constructor parameters in com.google.common.base with annotations of type ParametricNullnessModifierConstructorDescriptionConstantFunction
(E value) (package private)
ForMapWithDefault
(Map<K, ? extends V> map, V defaultValue) (package private)
SupplierOfInstance
(T instance) private
Wrapper
(Equivalence<? super T> equivalence, T reference)