Uses of Class
com.google.common.base.Nullable

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
<E> Function<java.lang.Object,E>
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
<T> T
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
<T> T
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
<A,B> Function<A,B>
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
<T> Predicate<T>
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
<T extends java.lang.Appendable>
T
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
<T> Supplier<T>
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 AbstractMultiset.add(E element)
          Ensures that this collection contains the specified element.
static
<E> java.util.List<E>
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
<E> java.util.List<E>
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
<E> java.util.List<E>
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 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 AbstractMultiset.contains(java.lang.Object element)
          Returns true if this collection contains the specified element.
 boolean Multiset.contains(java.lang.Object element)
          Determines whether this multiset contains the specified element.
 boolean ImmutableCollection.contains(java.lang.Object object)
           
 boolean ImmutableMultiset.contains(java.lang.Object element)
           
static boolean Maps.containsEntry(java.util.Map<?,?> map, java.lang.Object key, java.lang.Object value)
          Returns true if map contains an entry mapping key to value.
static boolean Maps.containsEntry(java.util.Map<?,?> map, java.lang.Object key, java.lang.Object value)
          Returns true if map contains an entry mapping key to value.
 boolean ImmutableMultimap.containsEntry(java.lang.Object key, java.lang.Object value)
           
 boolean ImmutableMultimap.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 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 ImmutableBiMap.containsKey(java.lang.Object key)
           
abstract  boolean ImmutableMap.containsKey(java.lang.Object key)
           
 boolean ImmutableMultimap.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.
 boolean ImmutableBiMap.containsValue(java.lang.Object value)
           
abstract  boolean ImmutableMap.containsValue(java.lang.Object value)
           
 int ConcurrentMultiset.count(java.lang.Object element)
          Returns the number of occurrences of element in this multiset.
 int TreeMultiset.count(java.lang.Object element)
           
 int Multiset.count(java.lang.Object element)
          Returns the number of occurrences of an element in this multiset (the count of the element).
 int ImmutableMultiset.count(java.lang.Object element)
           
 boolean ImmutableMultimap.equals(java.lang.Object obj)
           
 boolean ForwardingMultimap.equals(java.lang.Object obj)
           
 boolean AbstractMultiset.equals(java.lang.Object other)
          Compares the specified object with this multiset for equality.
 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 ImmutableBiMap.equals(java.lang.Object o)
           
 boolean ImmutableMap.equals(java.lang.Object object)
           
 boolean Multiset.equals(java.lang.Object object)
          Compares the specified object with this multiset for equality.
 boolean ImmutableMultiset.equals(java.lang.Object other)
           
 V EnumHashBiMap.forcePut(K key, V value)
           
 V HashBiMap.forcePut(K key, V value)
           
 V HashBiMap.forcePut(K key, V value)
           
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.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
<T> T
Iterables.getOnlyElement(java.lang.Iterable<T> iterable, T defaultValue)
          Returns the single element contained in iterable, or defaultValue if the iterable is empty.
static
<T> T
Iterators.getOnlyElement(java.util.Iterator<T> iterator, T defaultValue)
          Returns the single element contained in iterator, or defaultValue if the iterator is empty.
static
<T> Ordering<T>
Comparators.givenOrder(T leastValue, T... remainingValuesInOrder)
          Returns the comparator that compares objects according to the order in which they are given to this method.
static
<K,V> java.util.Map.Entry<K,V>
Maps.immutableEntry(K key, V value)
          Returns an immutable map entry with the specified key and value.
static
<K,V> java.util.Map.Entry<K,V>
Maps.immutableEntry(K key, V value)
          Returns an immutable map entry with the specified key and value.
static
<E> java.util.List<E>
Lists.immutableList(E element)
          Returns an immutable List instance with a single element.
abstract  int ImmutableList.indexOf(java.lang.Object object)
           
abstract  int ImmutableList.lastIndexOf(java.lang.Object object)
           
static
<T> T
Comparators.max(java.util.Comparator<? super T> comparator, T a, T b)
          Returns the larger of the two values according to the specified comparator.
static
<T> T
Comparators.max(java.util.Comparator<? super T> comparator, T a, T b)
          Returns the larger of the two values according to the specified comparator.
static
<T> T
Comparators.min(java.util.Comparator<? super T> comparator, T a, T b)
          Returns the smaller of the two values according to the specified comparator.
static
<T> T
Comparators.min(java.util.Comparator<? super T> comparator, T a, T b)
          Returns the smaller of the two values according to the specified comparator.
static
<C,K extends C,V>
java.util.TreeMap<K,V>
Maps.newTreeMap(java.util.Comparator<C> comparator)
          Creates a TreeMap instance using the given comparator.
static
<K,V> TreeMultimap<K,V>
Multimaps.newTreeMultimap(java.util.Comparator<? super K> keyComparator, java.util.Comparator<? super V> valueComparator)
          Creates an empty TreeMultimap instance using explicit comparators.
static
<K,V> TreeMultimap<K,V>
Multimaps.newTreeMultimap(java.util.Comparator<? super K> keyComparator, java.util.Comparator<? super V> valueComparator)
          Creates an empty TreeMultimap instance using explicit comparators.
static
<K,V> TreeMultimap<K,V>
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
<K,V> TreeMultimap<K,V>
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 Multimap.putAll(K key, java.lang.Iterable<? extends V> values)
          Stores a collection of values with the same key.
<T extends B>
T
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 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.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 ConcurrentMultiset.removeAllOccurrences(java.lang.Object element)
          Removes all occurrences of the specified element from this multiset.
 int TreeMultiset.removeAllOccurrences(java.lang.Object element)
           
 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.
 

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.
 



Copyright © 2007-2008 Google. All Rights Reserved.