|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Nullable | |
|---|---|
| com.google.common.base | Miscellaneous common util classes and annotations. |
| com.google.common.collect | This package contains generic collection interfaces and implementations, and other utilities for working with collections. |
| Uses of Nullable in com.google.common.base |
|---|
| Method parameters in com.google.common.base with annotations of type Nullable | ||
|---|---|---|
T |
Function.apply(F from)
Applies the function to an object of type F, resulting in an object
of type T. |
|
boolean |
Predicate.apply(T input)
Applies this predicate to the given object. |
|
static
|
Functions.constant(E value)
Creates a function that returns value for any input. |
|
static boolean |
Objects.equal(java.lang.Object a,
java.lang.Object b)
Determines whether two possibly-null objects are equal. |
|
static boolean |
Objects.equal(java.lang.Object a,
java.lang.Object b)
Determines whether two possibly-null objects are equal. |
|
boolean |
Function.equals(java.lang.Object obj)
Indicates whether some other object is equal to this Function. |
|
boolean |
Predicate.equals(java.lang.Object obj)
Indicates whether some other object is equal to this Predicate. |
|
static
|
Objects.firstNonNull(T first,
T second)
Returns the first of two given parameters that is not null, if
either is, or otherwise throws a NullPointerException. |
|
static
|
Objects.firstNonNull(T first,
T second)
Returns the first of two given parameters that is not null, if
either is, or otherwise throws a NullPointerException. |
|
static
|
Functions.forMap(java.util.Map<? super A,? extends B> map,
B defaultValue)
Returns a function which performs a map lookup with a default value. |
|
static
|
Predicates.isEqualTo(T target)
Returns a predicate that evaluates to true if the object being
tested equals() the given target or both are null. |
|
static Predicate<java.lang.Object> |
Predicates.isSameAs(java.lang.Object target)
Returns a predicate that evaluates to true if the object being
tested refers to the same object as the given target or both are null. |
|
static java.lang.String |
Join.join(java.lang.String delimiter,
java.lang.Object firstToken,
java.lang.Object... otherTokens)
Returns a string containing the tokens, converted to strings if
necessary, separated by delimiter. |
|
static
|
Join.join(T appendable,
java.lang.String delimiter,
java.lang.Object firstToken,
java.lang.Object... otherTokens)
Appends each of the tokens to appendable, separated by
delimiter. |
|
static
|
Suppliers.ofInstance(T instance)
Returns a supplier that always supplies instance. |
|
| Uses of Nullable in com.google.common.collect |
|---|
| Method parameters in com.google.common.collect with annotations of type Nullable | ||
|---|---|---|
boolean |
Multiset.add(E element,
int occurrences)
Adds a number of occurrences of an element to this multiset. |
|
static
|
Lists.asList(E first,
E[] rest)
Returns an unmodifiable list containing the specified first element and backed by the specified array of additional elements. |
|
static
|
Lists.asList(E first,
E second,
E[] rest)
Returns an unmodifiable list containing the specified first and second element, and backed by the specified array of additional elements. |
|
static
|
Lists.asList(E first,
E second,
E[] rest)
Returns an unmodifiable list containing the specified first and second element, and backed by the specified array of additional elements. |
|
void |
MapConstraint.checkKeyValue(K key,
V value)
Throws a suitable RuntimeException if the specified key or value is
illegal. |
|
void |
MapConstraint.checkKeyValue(K key,
V value)
Throws a suitable RuntimeException if the specified key or value is
illegal. |
|
static
|
ObjectArrays.concat(T[] array,
T element)
Returns a new array that appends element to array. |
|
static
|
ObjectArrays.concat(T element,
T[] array)
Returns a new array that prepends element to array. |
|
static boolean |
Iterables.contains(java.lang.Iterable<?> iterable,
java.lang.Object element)
Returns true if iterable contains element; that is,
any object for while equals(element) is true. |
|
static boolean |
Iterators.contains(java.util.Iterator<?> iterator,
java.lang.Object element)
Returns true if iterator contains element. |
|
boolean |
ImmutableMultiset.contains(java.lang.Object element)
|
|
boolean |
ImmutableCollection.contains(java.lang.Object object)
|
|
boolean |
Multiset.contains(java.lang.Object element)
Determines whether this multiset contains the specified element. |
|
boolean |
ImmutableMultimap.containsEntry(java.lang.Object key,
java.lang.Object value)
|
|
boolean |
ImmutableMultimap.containsEntry(java.lang.Object key,
java.lang.Object value)
|
|
boolean |
LinkedListMultimap.containsEntry(java.lang.Object key,
java.lang.Object value)
|
|
boolean |
LinkedListMultimap.containsEntry(java.lang.Object key,
java.lang.Object value)
|
|
boolean |
ForwardingMultimap.containsEntry(java.lang.Object key,
java.lang.Object value)
|
|
boolean |
ForwardingMultimap.containsEntry(java.lang.Object key,
java.lang.Object value)
|
|
boolean |
Multimap.containsEntry(java.lang.Object key,
java.lang.Object value)
Returns true if the multimap contains the specified key-value pair. |
|
boolean |
Multimap.containsEntry(java.lang.Object key,
java.lang.Object value)
Returns true if the multimap contains the specified key-value pair. |
|
boolean |
ImmutableMultimap.containsKey(java.lang.Object key)
|
|
boolean |
ImmutableBiMap.containsKey(java.lang.Object key)
|
|
abstract boolean |
ImmutableMap.containsKey(java.lang.Object key)
|
|
boolean |
LinkedListMultimap.containsKey(java.lang.Object key)
|
|
boolean |
ForwardingMultimap.containsKey(java.lang.Object key)
|
|
boolean |
Multimap.containsKey(java.lang.Object key)
Returns true if the multimap contains any values for the specified
key. |
|
boolean |
ImmutableMultimap.containsValue(java.lang.Object value)
|
|
boolean |
ImmutableBiMap.containsValue(java.lang.Object value)
|
|
abstract boolean |
ImmutableMap.containsValue(java.lang.Object value)
|
|
boolean |
LinkedListMultimap.containsValue(java.lang.Object value)
|
|
boolean |
ForwardingMultimap.containsValue(java.lang.Object value)
|
|
boolean |
Multimap.containsValue(java.lang.Object value)
Returns true if the multimap contains the specified value for any
key. |
|
int |
ImmutableMultiset.count(java.lang.Object element)
|
|
int |
TreeMultiset.count(java.lang.Object element)
|
|
int |
ConcurrentMultiset.count(java.lang.Object element)
Returns the number of occurrences of element in this multiset. |
|
int |
Multiset.count(java.lang.Object element)
Returns the number of occurrences of an element in this multiset (the count of the element). |
|
boolean |
ImmutableMultimap.equals(java.lang.Object object)
|
|
boolean |
ImmutableBiMap.equals(java.lang.Object object)
|
|
boolean |
ImmutableMap.equals(java.lang.Object object)
|
|
boolean |
ImmutableSet.equals(java.lang.Object object)
|
|
boolean |
ImmutableMultiset.equals(java.lang.Object object)
|
|
boolean |
LinkedListMultimap.equals(java.lang.Object other)
Compares the specified object to this multimap for equality. |
|
boolean |
ForwardingList.equals(java.lang.Object object)
|
|
boolean |
ForwardingMultiset.equals(java.lang.Object object)
|
|
boolean |
ForwardingSet.equals(java.lang.Object object)
|
|
boolean |
ForwardingMap.equals(java.lang.Object object)
|
|
boolean |
ForwardingMapEntry.equals(java.lang.Object object)
|
|
boolean |
AbstractMapEntry.equals(java.lang.Object object)
Indicates whether an object equals this entry, following the behavior specified in Map.Entry.equals(java.lang.Object). |
|
boolean |
ForwardingMultimap.equals(java.lang.Object object)
|
|
boolean |
SetMultimap.equals(java.lang.Object obj)
Compares the specified object to this multimap for equality. |
|
boolean |
ListMultimap.equals(java.lang.Object obj)
Compares the specified object to this multimap for equality. |
|
boolean |
Multimap.equals(java.lang.Object obj)
Compares the specified object with this multimap for equality. |
|
boolean |
Multiset.equals(java.lang.Object object)
Compares the specified object with this multiset for equality. |
|
V |
EnumHashBiMap.forcePut(K key,
V value)
|
|
V |
HashBiMap.forcePut(K key,
V value)
|
|
V |
HashBiMap.forcePut(K key,
V value)
|
|
V |
BiMap.forcePut(K key,
V value)
An alternate form of put that silently removes any existing entry
with the value value before proceeding with the BiMap.put(K, V)
operation. |
|
V |
BiMap.forcePut(K key,
V value)
An alternate form of put that silently removes any existing entry
with the value value before proceeding with the BiMap.put(K, V)
operation. |
|
static int |
Iterables.frequency(java.lang.Iterable<?> iterable,
java.lang.Object element)
Returns the number of elements in the specified iterable that equal the specified object. |
|
static int |
Iterators.frequency(java.util.Iterator<?> iterator,
java.lang.Object element)
Returns the number of elements in the specified iterator that equal the specified object. |
|
ImmutableList<V> |
ImmutableMultimap.get(K key)
Returns an immutable list of the values for the given key. |
|
java.util.List<V> |
LinkedListMultimap.get(K key)
Returns a collection view of all values associated with a key. |
|
java.util.Collection<V> |
ForwardingMultimap.get(K key)
|
|
java.util.SortedSet<V> |
SortedSetMultimap.get(K key)
Returns a collection view of all values associated with a key. |
|
java.util.Set<V> |
SetMultimap.get(K key)
Returns a collection view of all values associated with a key. |
|
java.util.List<V> |
ListMultimap.get(K key)
Returns a collection view of all values associated with a key. |
|
java.util.Collection<V> |
Multimap.get(K key)
Returns a collection view of all values associated with a key. |
|
V |
ImmutableBiMap.get(java.lang.Object key)
|
|
abstract V |
ImmutableMap.get(java.lang.Object key)
|
|
static
|
Iterables.getOnlyElement(java.lang.Iterable<T> iterable,
T defaultValue)
Returns the single element contained in iterable, or defaultValue if the iterable is empty. |
|
static
|
Iterators.getOnlyElement(java.util.Iterator<T> iterator,
T defaultValue)
Returns the single element contained in iterator, or defaultValue if the iterator is empty. |
|
static
|
Ordering.givenOrder(T leastValue,
T... remainingValuesInOrder)
Returns an ordering that compares objects according to the order in which they are given to this method. |
|
static
|
Maps.immutableEntry(K key,
V value)
Returns an immutable map entry with the specified key and value. |
|
static
|
Maps.immutableEntry(K key,
V value)
Returns an immutable map entry with the specified key and value. |
|
abstract int |
ImmutableList.indexOf(java.lang.Object object)
|
|
abstract int |
ImmutableList.lastIndexOf(java.lang.Object object)
|
|
static
|
Maps.newTreeMap(java.util.Comparator<C> comparator)
Creates a TreeMap instance using the given comparator. |
|
static
|
Multimaps.newTreeMultimap(java.util.Comparator<? super K> keyComparator,
java.util.Comparator<? super V> valueComparator)
Creates an empty TreeMultimap instance using explicit comparators. |
|
static
|
Multimaps.newTreeMultimap(java.util.Comparator<? super K> keyComparator,
java.util.Comparator<? super V> valueComparator)
Creates an empty TreeMultimap instance using explicit comparators. |
|
static
|
Multimaps.newTreeMultimap(java.util.Comparator<? super K> keyComparator,
java.util.Comparator<? super V> valueComparator,
Multimap<? extends K,? extends V> multimap)
Creates a TreeMultimap instance using explicit comparators,
initialized with all elements from the supplied Multimap. |
|
static
|
Multimaps.newTreeMultimap(java.util.Comparator<? super K> keyComparator,
java.util.Comparator<? super V> valueComparator,
Multimap<? extends K,? extends V> multimap)
Creates a TreeMultimap instance using explicit comparators,
initialized with all elements from the supplied Multimap. |
|
V |
EnumHashBiMap.put(K key,
V value)
|
|
V |
HashBiMap.put(K key,
V value)
|
|
V |
HashBiMap.put(K key,
V value)
|
|
boolean |
LinkedListMultimap.put(K key,
V value)
Stores a key-value pair in the multimap. |
|
boolean |
LinkedListMultimap.put(K key,
V value)
Stores a key-value pair in the multimap. |
|
boolean |
Multimap.put(K key,
V value)
Stores a key-value pair in the multimap. |
|
boolean |
Multimap.put(K key,
V value)
Stores a key-value pair in the multimap. |
|
V |
BiMap.put(K key,
V value)
|
|
V |
BiMap.put(K key,
V value)
|
|
boolean |
LinkedListMultimap.putAll(K key,
java.lang.Iterable<? extends V> values)
|
|
boolean |
Multimap.putAll(K key,
java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key. |
|
|
ClassToInstanceMap.putInstance(java.lang.Class<T> type,
T value)
Maps the specified class to the specified value. |
|
boolean |
Multiset.remove(java.lang.Object element)
Removes a single occurrence of the specified element from this multiset, if present. |
|
int |
ConcurrentMultiset.remove(java.lang.Object element,
int occurrences)
Removes a number of occurrences of the specified element from this multiset. |
|
int |
Multiset.remove(java.lang.Object element,
int occurrences)
Conditionally removes a number of occurrences of an element from this multiset, provided that at least this many occurrences are present. |
|
boolean |
LinkedListMultimap.remove(java.lang.Object key,
java.lang.Object value)
|
|
boolean |
LinkedListMultimap.remove(java.lang.Object key,
java.lang.Object value)
|
|
boolean |
ForwardingMultimap.remove(java.lang.Object key,
java.lang.Object value)
|
|
boolean |
ForwardingMultimap.remove(java.lang.Object key,
java.lang.Object value)
|
|
boolean |
Multimap.remove(java.lang.Object key,
java.lang.Object value)
Removes a key-value pair from the multimap. |
|
boolean |
Multimap.remove(java.lang.Object key,
java.lang.Object value)
Removes a key-value pair from the multimap. |
|
java.util.List<V> |
LinkedListMultimap.removeAll(java.lang.Object key)
|
|
java.util.Collection<V> |
ForwardingMultimap.removeAll(java.lang.Object key)
|
|
java.util.SortedSet<V> |
SortedSetMultimap.removeAll(java.lang.Object key)
Removes all values associated with a given key. |
|
java.util.Set<V> |
SetMultimap.removeAll(java.lang.Object key)
Removes all values associated with a given key. |
|
java.util.List<V> |
ListMultimap.removeAll(java.lang.Object key)
Removes all values associated with a given key. |
|
java.util.Collection<V> |
Multimap.removeAll(java.lang.Object key)
Removes all values associated with a given key. |
|
int |
TreeMultiset.removeAllOccurrences(java.lang.Object element)
|
|
int |
ConcurrentMultiset.removeAllOccurrences(java.lang.Object element)
Removes all occurrences of the specified element from this multiset. |
|
int |
Multiset.removeAllOccurrences(java.lang.Object element)
Removes all occurrences of the specified element from this multiset. |
|
boolean |
ConcurrentMultiset.removeExactly(java.lang.Object element,
int occurrences)
Removes exactly the specified number of occurrences of element, or
makes no change if this is not possible. |
|
java.util.Set<V> |
LinkedHashMultimap.replaceValues(K key,
java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing values for that key. |
|
java.util.List<V> |
LinkedListMultimap.replaceValues(K key,
java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing values for that key. |
|
java.util.Collection<V> |
Multimap.replaceValues(K key,
java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing values for that key. |
|
static
|
Iterators.singletonIterator(T value)
Returns an iterator containing only value. |
|
| Constructor parameters in com.google.common.collect with annotations of type Nullable | |
|---|---|
TreeMultimap(java.util.Comparator<? super K> keyComparator,
java.util.Comparator<? super V> valueComparator)
Constructs an empty TreeMultimap with explicit comparators. |
|
TreeMultimap(java.util.Comparator<? super K> keyComparator,
java.util.Comparator<? super V> valueComparator)
Constructs an empty TreeMultimap with explicit comparators. |
|
TreeMultimap(java.util.Comparator<? super K> keyComparator,
java.util.Comparator<? super V> valueComparator,
Multimap<? extends K,? extends V> multimap)
Constructs a TreeMultimap with explicit comparators and the same
mappings as the specified multimap. |
|
TreeMultimap(java.util.Comparator<? super K> keyComparator,
java.util.Comparator<? super V> valueComparator,
Multimap<? extends K,? extends V> multimap)
Constructs a TreeMultimap with explicit comparators and the same
mappings as the specified multimap. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||