diff --git a/releases/snapshot-android/api/docs/com/google/common/annotations/class-use/Beta.html b/releases/snapshot-android/api/docs/com/google/common/annotations/class-use/Beta.html index a8057e330df7..07bd332f46e1 100644 --- a/releases/snapshot-android/api/docs/com/google/common/annotations/class-use/Beta.html +++ b/releases/snapshot-android/api/docs/com/google/common/annotations/class-use/Beta.html @@ -100,8 +100,8 @@
forEachPair(Stream<A> streamA,
Stream<B> streamB,
BiConsumer<? super A,? super B> consumer)
optional
, returns a stream containing only that element,
otherwise returns an empty stream.
-static <A extends @Nullable Object,
-B extends @Nullable Object,
-R extends @Nullable Object>
Stream<R>
static <A extends @Nullable Object,
+B extends @Nullable Object,
+R extends @Nullable Object>
Stream<R>
zip(Stream<A> streamA,
Stream<B> streamB,
BiFunction<? super A,? super B,R> function)
final class
BloomFilter<T extends @Nullable Object>
BloomFilter<T extends @Nullable Object>
T
.interface
T
into a PrimitiveSink
.interface
-
+
java.util.function.Function
.interface
-
+
java.util.function.Predicate
.String
or CharSequence
instances.
interface
java.util.function.Supplier
.alwaysFalse()
false
.alwaysTrue()
true
.isNull()
true
if the object reference being tested is
null.notNull()
true
if the object reference being tested is not
null.final <S extends @Nullable T>
Equivalence<Iterable<S>>
final <S extends @Nullable T>
Equivalence<Iterable<S>>
pairwise()
class
AbstractIterator<T extends @Nullable Object>
AbstractIterator<T extends @Nullable Object>
Iterator
interface, to make this
interface easier to implement for certain types of data sources.final class
ArrayListMultimap<K extends @Nullable Object,V extends @Nullable Object>
ArrayListMultimap<K extends @Nullable Object,V extends @Nullable Object>
Multimap
that uses an ArrayList
to store the values for a given
key.Table
implementation backed by a two-dimensional array.interface
interface
ClassToInstanceMap<B extends @Nullable Object>
ClassToInstanceMap<B extends @Nullable Object>
BiMap
backed by two EnumMap
instances.final class
EnumHashBiMap<K extends Enum<K>,V extends @Nullable Object>
EnumHashBiMap<K extends Enum<K>,V extends @Nullable Object>
BiMap
backed by an EnumMap
instance for keys-to-values, and a HashMap
instance for values-to-keys.class
FluentIterable<E extends @Nullable Object>
FluentIterable<E extends @Nullable Object>
Iterable
API, providing functionality similar to Java 8's powerful streams library in a slightly different way.class
ForwardingCollection<E extends @Nullable Object>
ForwardingCollection<E extends @Nullable Object>
class
ForwardingIterator<T extends @Nullable Object>
ForwardingIterator<T extends @Nullable Object>
class
ForwardingList<E extends @Nullable Object>
ForwardingList<E extends @Nullable Object>
class
ForwardingListIterator<E extends @Nullable Object>
ForwardingListIterator<E extends @Nullable Object>
class
ForwardingListMultimap<K extends @Nullable Object,V extends @Nullable Object>
ForwardingListMultimap<K extends @Nullable Object,V extends @Nullable Object>
class
ForwardingMap<K extends @Nullable Object,V extends @Nullable Object>
ForwardingMap<K extends @Nullable Object,V extends @Nullable Object>
class
ForwardingMapEntry<K extends @Nullable Object,V extends @Nullable Object>
ForwardingMapEntry<K extends @Nullable Object,V extends @Nullable Object>
class
ForwardingMultimap<K extends @Nullable Object,V extends @Nullable Object>
ForwardingMultimap<K extends @Nullable Object,V extends @Nullable Object>
class
ForwardingMultiset<E extends @Nullable Object>
ForwardingMultiset<E extends @Nullable Object>
class
ForwardingQueue<E extends @Nullable Object>
ForwardingQueue<E extends @Nullable Object>
class
ForwardingSet<E extends @Nullable Object>
ForwardingSet<E extends @Nullable Object>
class
ForwardingSetMultimap<K extends @Nullable Object,V extends @Nullable Object>
ForwardingSetMultimap<K extends @Nullable Object,V extends @Nullable Object>
class
ForwardingSortedMap<K extends @Nullable Object,V extends @Nullable Object>
ForwardingSortedMap<K extends @Nullable Object,V extends @Nullable Object>
class
ForwardingSortedMultiset<E extends @Nullable Object>
ForwardingSortedMultiset<E extends @Nullable Object>
class
ForwardingSortedSet<E extends @Nullable Object>
ForwardingSortedSet<E extends @Nullable Object>
class
ForwardingSortedSetMultimap<K extends @Nullable Object,V extends @Nullable Object>
ForwardingSortedSetMultimap<K extends @Nullable Object,V extends @Nullable Object>
class
ForwardingTable<R extends @Nullable Object,C extends @Nullable Object,V extends @Nullable Object>
Table
using linked hash tables.
final class
BiMap
backed by two hash tables.final class
HashMultimap<K extends @Nullable Object,V extends @Nullable Object>
HashMultimap<K extends @Nullable Object,V extends @Nullable Object>
Multimap
using hash tables.final class
HashMultiset<E extends @Nullable Object>
HashMultiset<E extends @Nullable Object>
Iterator
.
final class
LinkedHashMultimap<K extends @Nullable Object,V extends @Nullable Object>
LinkedHashMultimap<K extends @Nullable Object,V extends @Nullable Object>
Multimap
that does not allow duplicate key-value entries and that
returns collections whose iterators follow the ordering in which the data was added to the
multimap.final class
LinkedHashMultiset<E extends @Nullable Object>
LinkedHashMultiset<E extends @Nullable Object>
Multiset
implementation with predictable iteration order.class
LinkedListMultimap<K extends @Nullable Object,V extends @Nullable Object>
LinkedListMultimap<K extends @Nullable Object,V extends @Nullable Object>
ListMultimap
that supports deterministic iteration order for both
keys and values.interface
ListMultimap<K extends @Nullable Object,V extends @Nullable Object>
ListMultimap<K extends @Nullable Object,V extends @Nullable Object>
Multimap
that can hold duplicate key-value pairs and that maintains the insertion
ordering of values for a given key.List
instances.interface
MapDifference<K extends @Nullable Object,V extends @Nullable Object>
MapDifference<K extends @Nullable Object,V extends @Nullable Object>
interface
-
+
Map
, but in which each key may be
associated with multiple values.class
MultimapBuilder<K0 extends @Nullable Object,V0 extends @Nullable Object>
MultimapBuilder<K0 extends @Nullable Object,V0 extends @Nullable Object>
Multimap
instances, letting you independently select the desired
behaviors (for example, ordering) of the backing map and value-collections.Multimap
.interface
Set
, but may have duplicate
elements.class
interface
PeekingIterator<E extends @Nullable Object>
PeekingIterator<E extends @Nullable Object>
interface
RowSortedTable<R extends @Nullable Object,C extends @Nullable Object,V extends @Nullable Object>
Table
and whose rows are sorted.interface
SetMultimap<K extends @Nullable Object,V extends @Nullable Object>
SetMultimap<K extends @Nullable Object,V extends @Nullable Object>
Multimap
that cannot hold duplicate key-value pairs.Set
instances.
interface
SortedMapDifference<K extends @Nullable Object,V extends @Nullable Object>
SortedMapDifference<K extends @Nullable Object,V extends @Nullable Object>
interface
SortedMultiset<E extends @Nullable Object>
SortedMultiset<E extends @Nullable Object>
Multiset
which maintains the ordering of its elements, according to either their
natural order or an explicit Comparator
.interface
SortedSetMultimap<K extends @Nullable Object,V extends @Nullable Object>
SortedSetMultimap<K extends @Nullable Object,V extends @Nullable Object>
SetMultimap
whose set of values for a given key are kept sorted; that is, they comprise
a SortedSet
.Stream
instances.interface
class
TreeMultimap<K extends @Nullable Object,V extends @Nullable Object>
TreeMultimap<K extends @Nullable Object,V extends @Nullable Object>
Multimap
whose keys and values are ordered by their natural ordering or
by supplied comparators.final class
TreeMultiset<E extends @Nullable Object>
TreeMultiset<E extends @Nullable Object>
Comparator
.class
UnmodifiableIterator<E extends @Nullable Object>
UnmodifiableIterator<E extends @Nullable Object>
UnmodifiableIterator.remove()
.class
UnmodifiableListIterator<E extends @Nullable Object>
UnmodifiableListIterator<E extends @Nullable Object>
UnmodifiableIterator.remove()
, UnmodifiableListIterator.add(E)
, or UnmodifiableListIterator.set(E)
.allEqual()
compound(Iterable<? extends Comparator<? super T>> comparators)
from(Comparator<T> comparator)
immutableEntry(K key,
V value)
newArrayList()
ArrayList
instance (for Java 6 and earlier).newArrayList(E... elements)
ArrayList
instance containing the given elements.newArrayList(Iterable<? extends E> elements)
ArrayList
instance containing the given elements; a very thin
shortcut for creating an empty list then calling Iterables.addAll(java.util.Collection<T>, java.lang.Iterable<? extends T>)
.newArrayList(Iterator<? extends E> elements)
ArrayList
instance containing the given elements; a very thin
shortcut for creating an empty list and then calling Iterators.addAll(java.util.Collection<T>, java.util.Iterator<? extends T>)
.newArrayListWithCapacity(int initialArraySize)
ArrayList
instance backed by an array with the specified initial size;
simply delegates to ArrayList(int)
.newArrayListWithExpectedSize(int estimatedSize)
ArrayList
instance to hold estimatedSize
elements, plus an
unspecified amount of padding; you almost certainly mean to call Lists.newArrayListWithCapacity(int)
(see that method for further advice on usage).static <E extends @Nullable Object>
LinkedList<E>
static <E extends @Nullable Object>
LinkedList<E>
newLinkedList()
LinkedList
instance (for Java 6 and earlier).static <E extends @Nullable Object>
LinkedList<E>
static <E extends @Nullable Object>
LinkedList<E>
newLinkedList(Iterable<? extends E> elements)
LinkedList
instance containing the given elements; a very thin
shortcut for creating an empty list then calling Iterables.addAll(java.util.Collection<T>, java.lang.Iterable<? extends T>)
.nullsFirst()
null
as less than all other values and uses
this
to compare non-null values.nullsLast()
null
as greater than all other values and uses this
ordering to compare non-null values.onResultOf(Function<F,? extends T> function)
F
which orders elements by first applying a function to them,
@@ -1348,17 +1348,17 @@ class
AbstractFuture<V extends @Nullable Object>
AbstractFuture<V extends @Nullable Object>
ListenableFuture
, intended for advanced users only.interface
AsyncCallable<V extends @Nullable Object>
AsyncCallable<V extends @Nullable Object>
interface
AsyncFunction<I extends @Nullable Object,O extends @Nullable Object>
AsyncFunction<I extends @Nullable Object,O extends @Nullable Object>
Error
variant of ExecutionException
.class
FluentFuture<V extends @Nullable Object>
FluentFuture<V extends @Nullable Object>
ListenableFuture
that supports fluent chains of operations.class
ForwardingFuture<V extends @Nullable Object>
ForwardingFuture<V extends @Nullable Object>
Future
which forwards all its method calls to another future.class
ForwardingListenableFuture<V extends @Nullable Object>
ForwardingListenableFuture<V extends @Nullable Object>
ListenableFuture
which forwards all its method calls to another future.interface
FutureCallback<V extends @Nullable Object>
FutureCallback<V extends @Nullable Object>
Future
computation
asynchronously.Future
interface.static final class
Futures.FutureCombiner<V extends @Nullable Object>
Futures.FutureCombiner<V extends @Nullable Object>
ListenableFuture
whose result is generated from a combination
of input futures.interface
ListenableScheduledFuture<V extends @Nullable Object>
ListenableScheduledFuture<V extends @Nullable Object>
ListenableFuture
and ScheduledFuture
.Runnable
interface.
final class
SettableFuture<V extends @Nullable Object>
SettableFuture<V extends @Nullable Object>
ListenableFuture
whose result can be set by a SettableFuture.set(Object)
, SettableFuture.setException(Throwable)
or SettableFuture.setFuture(ListenableFuture)
call.Duration
.static <X extends Throwable>
@Nullable X
getCauseAs(Throwable throwable,
Class<X> expectedCauseType)
toString()
, followed by
the full, recursive stack trace of throwable
.instanceOf(Class<?> clazz)
true
if the object being tested is an instance of
@@ -240,7 +240,7 @@ static <T extends @Nullable Object>
Supplier<T>
memoizeWithExpiration(Supplier<T> delegate,
Duration duration)
static <X extends Throwable>
void
propagateIfInstanceOf(@Nullable Throwable throwable,
+Throwables.propagateIfInstanceOf(@Nullable Throwable throwable,
Class<X> declaredType)
Deprecated.
@@ -277,7 +277,7 @@ Uses of static void
-Throwables.propagateIfPossible(@Nullable Throwable throwable)
+Throwables.propagateIfPossible(@Nullable Throwable throwable)
Deprecated.
Use Throwables.throwIfUnchecked(java.lang.Throwable)
, which has the same behavior but rejects
@@ -285,7 +285,7 @@ Uses of static <X extends Throwable>
void
-Throwables.propagateIfPossible(@Nullable Throwable throwable,
+Throwables.propagateIfPossible(@Nullable Throwable throwable,
Class<X> declaredType)
Deprecated.
@@ -295,7 +295,7 @@ Uses of static <X1 extends Throwable,
X2 extends Throwable>
void
-Throwables.propagateIfPossible(@Nullable Throwable throwable,
+Throwables.propagateIfPossible(@Nullable Throwable throwable,
Class<X1> declaredType1,
Class<X2> declaredType2)
@@ -465,17 +465,17 @@ Uses of class
-ForwardingDeque<E extends @Nullable Object>
+ForwardingDeque<E extends @Nullable Object>
A deque which forwards all its method calls to another deque.
class
-ForwardingNavigableMap<K extends @Nullable Object,V extends @Nullable Object>
+ForwardingNavigableMap<K extends @Nullable Object,V extends @Nullable Object>
A navigable map which forwards all its method calls to another navigable map.
class
-ForwardingNavigableSet<E extends @Nullable Object>
+ForwardingNavigableSet<E extends @Nullable Object>
A navigable set which forwards all its method calls to another navigable set.
@@ -514,7 +514,7 @@ Uses of Contains static methods pertaining to instances of Interner
.
final class
-MutableClassToInstanceMap<B extends @Nullable Object>
+MutableClassToInstanceMap<B extends @Nullable Object>
A mutable class-to-instance map backed by an arbitrary user-provided map.
@@ -545,8 +545,8 @@ Uses of Modifier and Type
Method
Description
-static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
Maps.asMap(NavigableSet<K> set,
Function<? super K,V> function)
@@ -566,10 +566,10 @@ Uses of Creates an EnumSet
consisting of all enum values that are not in the specified
collection.
-static <T extends @Nullable Object>
T[]
+
+ Class<@NonNull T> type)
Returns a new array that contains the concatenated contents of two arrays.
@@ -636,29 +636,29 @@ Uses of Returns a view of unfiltered
containing all elements that are of the type
desiredType
.
static <E extends @Nullable Object>
NavigableSet<E>
static <E extends @Nullable Object>
NavigableSet<E>
filter(NavigableSet<E> unfiltered,
Predicate<? super E> predicate)
NavigableSet
, unfiltered
, that satisfy a predicate.static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
filterEntries(NavigableMap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
unfiltered
that satisfy a predicate.static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
filterKeys(NavigableMap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
unfiltered
whose keys satisfy a
predicate.static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
filterValues(NavigableMap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
headSet(C toElement,
boolean inclusive)
@Nullable E
@Nullable E
static <T extends @Nullable Object>
T[]
newArray(Class<@NonNull T> type,
+
+
Returns a new array of the given length with the specified component type.
@@ -716,22 +716,22 @@ Uses of Creates a ConcurrentLinkedQueue
containing the elements of the specified iterable, in
the order they are returned by the iterable's iterator.
static <E extends @Nullable Object>
CopyOnWriteArrayList<E>
static <E extends @Nullable Object>
CopyOnWriteArrayList<E>
newCopyOnWriteArrayList()
CopyOnWriteArrayList
instance.static <E extends @Nullable Object>
CopyOnWriteArrayList<E>
static <E extends @Nullable Object>
CopyOnWriteArrayList<E>
newCopyOnWriteArrayList(Iterable<? extends E> elements)
CopyOnWriteArrayList
instance containing the given elements.static <E extends @Nullable Object>
CopyOnWriteArraySet<E>
static <E extends @Nullable Object>
CopyOnWriteArraySet<E>
newCopyOnWriteArraySet()
CopyOnWriteArraySet
instance.static <E extends @Nullable Object>
CopyOnWriteArraySet<E>
static <E extends @Nullable Object>
CopyOnWriteArraySet<E>
newCopyOnWriteArraySet(Iterable<? extends E> elements)
CopyOnWriteArraySet
instance containing the given elements.final @Nullable E
pollFirst()
final @Nullable E
pollLast()
static <K extends Comparable<? super K>,
-V extends @Nullable Object>
NavigableMap<K,V>
subMap(NavigableMap<K,V> map,
Range<K> range)
set
whose elements are contained by range
.static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
synchronizedNavigableMap(NavigableMap<K,V> navigableMap)
static <E extends @Nullable Object>
NavigableSet<E>
static <E extends @Nullable Object>
NavigableSet<E>
synchronizedNavigableSet(NavigableSet<E> navigableSet)
tailSet(C fromElement,
boolean inclusive)
@Nullable V[][]
final E[]
static <T extends @Nullable Object>
T[]
static <T extends @Nullable Object>
T[]
static <K extends @Nullable Object,
-V1 extends @Nullable Object,
-V2 extends @Nullable Object>
NavigableMap<K,V2>
static <K extends @Nullable Object,
+V1 extends @Nullable Object,
+V2 extends @Nullable Object>
NavigableMap<K,V2>
transformEntries(NavigableMap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer)
static <K extends @Nullable Object,
-V1 extends @Nullable Object,
-V2 extends @Nullable Object>
NavigableMap<K,V2>
static <K extends @Nullable Object,
+V1 extends @Nullable Object,
+V2 extends @Nullable Object>
NavigableMap<K,V2>
transformValues(NavigableMap<K,V1> fromMap,
Function<? super V1,V2> function)
static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
unmodifiableNavigableMap(NavigableMap<K,? extends V> map)
IOException
.interface
ByteProcessor<T extends @Nullable Object>
ByteProcessor<T extends @Nullable Object>
SecureDirectoryStream
is not supported).
interface
LineProcessor<T extends @Nullable Object>
LineProcessor<T extends @Nullable Object>
readLines
methods.value
in a 2-element byte array; equivalent to
ByteBuffer.allocate(2).putShort(value).array()
.
-static @Nullable Double
static @Nullable Float
Future
instances.class
ListenableFutureTask<V extends @Nullable Object>
ListenableFutureTask<V extends @Nullable Object>
FutureTask
that also implements the ListenableFuture
interface.service
.static <T extends @Nullable Object>
AsyncCallable<T>
static <T extends @Nullable Object>
AsyncCallable<T>
asAsyncCallable(Callable<T> callable,
ListeningExecutorService listeningExecutorService)
condition.
await(timeout, unit)
uninterruptibly.static <V extends @Nullable Object,
+
Futures.getChecked(Future<V> future,
Class<X> exceptionClass)
@@ -1714,7 +1714,7 @@ Uses of Returns the result of Future.get()
, converting most exceptions to a new instance of the
given checked exception type.
static <V extends @Nullable Object,
+
Futures.getChecked(Future<V> future,
Class<X> exceptionClass,
@@ -1724,7 +1724,7 @@ Uses of Returns the result of Future.get(long, TimeUnit)
, converting most exceptions to a new
instance of the given checked exception type.
static <V extends @Nullable Object,
+
Futures.getChecked(Future<V> future,
Class<X> exceptionClass,
@@ -1775,14 +1775,14 @@ Uses of Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when
the application is complete.
static <V extends @Nullable Object>
V
getUninterruptibly(Future<V> future,
long timeout,
TimeUnit unit)
future.
get(timeout, unit)
uninterruptibly.static <V extends @Nullable Object>
V
getUninterruptibly(Future<V> future,
Duration timeout)
unit.
timedJoin(toJoin, timeout)
uninterruptibly.lazyTransform(Future<I> input,
Function<? super I,? extends O> function)
queue.
put(element)
uninterruptibly.static <O extends @Nullable Object>
ListenableFuture<O>
static <O extends @Nullable Object>
ListenableFuture<O>
scheduleAsync(AsyncCallable<O> callable,
long delay,
TimeUnit timeUnit,
@@ -1859,7 +1859,7 @@ Uses of
Schedules callable
on the specified executor
, returning a Future
.
static <O extends @Nullable Object>
ListenableFuture<O>
static <O extends @Nullable Object>
ListenableFuture<O>
scheduleAsync(AsyncCallable<O> callable,
Duration delay,
ScheduledExecutorService executorService)
TimeoutException
wrapped in an ExecutionException
) if the specified timeout expires.static <V extends @Nullable Object>
ListenableFuture<V>
static <V extends @Nullable Object>
ListenableFuture<V>
withTimeout(ListenableFuture<V> delegate,
long time,
TimeUnit unit,
@@ -1965,7 +1965,7 @@ Uses of
Returns a future that delegates to another but will finish early (via a TimeoutException
wrapped in an ExecutionException
) if the specified duration expires.
static <V extends @Nullable Object>
ListenableFuture<V>
static <V extends @Nullable Object>
ListenableFuture<V>
withTimeout(ListenableFuture<V> delegate,
Duration time,
ScheduledExecutorService scheduledExecutor)
static <T extends @Nullable Object>
Supplier<T>
+
memoizeWithExpiration(Supplier<T> delegate,
Duration duration)
static <X extends Throwable>
void
propagateIfInstanceOf(@Nullable Throwable throwable,
+Throwables.propagateIfInstanceOf(@Nullable Throwable throwable,
Class<X> declaredType)
Deprecated.
@@ -227,7 +227,7 @@ Uses of static void
-Throwables.propagateIfPossible(@Nullable Throwable throwable)
+Throwables.propagateIfPossible(@Nullable Throwable throwable)
Deprecated.
Use Throwables.throwIfUnchecked(java.lang.Throwable)
, which has the same behavior but rejects
@@ -235,7 +235,7 @@ Uses of static <X extends Throwable>
void
-Throwables.propagateIfPossible(@Nullable Throwable throwable,
+Throwables.propagateIfPossible(@Nullable Throwable throwable,
Class<X> declaredType)
Deprecated.
@@ -245,7 +245,7 @@ Uses of static <X1 extends Throwable,
X2 extends Throwable>
void
-Throwables.propagateIfPossible(@Nullable Throwable throwable,
+Throwables.propagateIfPossible(@Nullable Throwable throwable,
Class<X1> declaredType1,
Class<X2> declaredType2)
@@ -260,7 +260,7 @@ Uses of Returns a predicate that evaluates to true
if the class being tested is assignable to
(is a subtype of) clazz
.
-
+
Suppliers.synchronizedSupplier(Supplier<T> delegate)
Returns a supplier whose get()
method synchronizes on delegate
before calling
@@ -289,7 +289,7 @@ Uses of A BiMap
backed by two EnumMap
instances.
final class
-EnumHashBiMap<K extends Enum<K>,V extends @Nullable Object>
+EnumHashBiMap<K extends Enum<K>,V extends @Nullable Object>
A BiMap
backed by an EnumMap
instance for keys-to-values, and a HashMap
instance for values-to-keys.
@@ -308,7 +308,7 @@ Uses of class
-ForwardingDeque<E extends @Nullable Object>
+ForwardingDeque<E extends @Nullable Object>
A deque which forwards all its method calls to another deque.
@@ -329,7 +329,7 @@ Uses of weak references.
final class
-MutableClassToInstanceMap<B extends @Nullable Object>
+MutableClassToInstanceMap<B extends @Nullable Object>
A mutable class-to-instance map backed by an arbitrary user-provided map.
@@ -339,7 +339,7 @@ Uses of Modifier and Type
Method
Description
-
+
Ordering.arbitrary()
Returns an arbitrary ordering over all objects, for which compare(a, b) == 0
implies
@@ -418,22 +418,22 @@ Uses of Creates a ConcurrentLinkedQueue
containing the elements of the specified iterable, in
the order they are returned by the iterable's iterator.
-static <E extends @Nullable Object>
CopyOnWriteArrayList<E>
+static <E extends @Nullable Object>
CopyOnWriteArrayList<E>
Lists.newCopyOnWriteArrayList()
Creates an empty CopyOnWriteArrayList
instance.
-static <E extends @Nullable Object>
CopyOnWriteArrayList<E>
+static <E extends @Nullable Object>
CopyOnWriteArrayList<E>
Lists.newCopyOnWriteArrayList(Iterable<? extends E> elements)
Creates a CopyOnWriteArrayList
instance containing the given elements.
-static <E extends @Nullable Object>
CopyOnWriteArraySet<E>
+static <E extends @Nullable Object>
CopyOnWriteArraySet<E>
Sets.newCopyOnWriteArraySet()
Creates an empty CopyOnWriteArraySet
instance.
-static <E extends @Nullable Object>
CopyOnWriteArraySet<E>
+static <E extends @Nullable Object>
CopyOnWriteArraySet<E>
Sets.newCopyOnWriteArraySet(Iterable<? extends E> elements)
Creates a CopyOnWriteArraySet
instance containing the given elements.
@@ -488,61 +488,61 @@ Uses of
Creates an empty SynchronousQueue
with nonfair access policy.
-
+
Maps.synchronizedBiMap(BiMap<K,V> bimap)
Returns a synchronized (thread-safe) bimap backed by the specified bimap.
-
+
Queues.synchronizedDeque(Deque<E> deque)
Returns a synchronized (thread-safe) deque backed by the specified deque.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
ListMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
ListMultimap<K,V>
Multimaps.synchronizedListMultimap(ListMultimap<K,V> multimap)
Returns a synchronized (thread-safe) ListMultimap
backed by the specified multimap.
-
+
Multimaps.synchronizedMultimap(Multimap<K,V> multimap)
Returns a synchronized (thread-safe) multimap backed by the specified multimap.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
Maps.synchronizedNavigableMap(NavigableMap<K,V> navigableMap)
Returns a synchronized (thread-safe) navigable map backed by the specified navigable map.
-static <E extends @Nullable Object>
NavigableSet<E>
+static <E extends @Nullable Object>
NavigableSet<E>
Sets.synchronizedNavigableSet(NavigableSet<E> navigableSet)
Returns a synchronized (thread-safe) navigable set backed by the specified navigable set.
-
+
Queues.synchronizedQueue(Queue<E> queue)
Returns a synchronized (thread-safe) queue backed by the specified queue.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
SetMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
SetMultimap<K,V>
Multimaps.synchronizedSetMultimap(SetMultimap<K,V> multimap)
Returns a synchronized (thread-safe) SetMultimap
backed by the specified multimap.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
SortedSetMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
SortedSetMultimap<K,V>
Multimaps.synchronizedSortedSetMultimap(SortedSetMultimap<K,V> multimap)
Returns a synchronized (thread-safe) SortedSetMultimap
backed by the specified
multimap.
-static <R extends @Nullable Object,
-C extends @Nullable Object,
-V extends @Nullable Object>
Table<R,C,V>
+static <R extends @Nullable Object,
+C extends @Nullable Object,
+V extends @Nullable Object>
Table<R,C,V>
Tables.synchronizedTable(Table<R,C,V> table)
Returns a synchronized (thread-safe) table backed by the specified table.
@@ -580,7 +580,7 @@ Uses of IOException
.
interface
-ByteProcessor<T extends @Nullable Object>
+ByteProcessor<T extends @Nullable Object>
A callback interface to process bytes from a stream.
@@ -664,7 +664,7 @@ Uses of SecureDirectoryStream
is not supported).
interface
LineProcessor<T extends @Nullable Object>
LineProcessor<T extends @Nullable Object>
readLines
methods.long
values that can be atomically updated.
final class
ClosingFuture<V extends @Nullable Object>
ClosingFuture<V extends @Nullable Object>
Future
instances.
class
ListenableFutureTask<V extends @Nullable Object>
ListenableFutureTask<V extends @Nullable Object>
FutureTask
that also implements the ListenableFuture
interface.service
.static <T extends @Nullable Object>
AsyncCallable<T>
static <T extends @Nullable Object>
AsyncCallable<T>
asAsyncCallable(Callable<T> callable,
ListeningExecutorService listeningExecutorService)
static <V extends @Nullable Object,
+static <V extends @Nullable Object,
X extends Throwable>
ListenableFuture<V>
Futures.catching(ListenableFuture<? extends V> input,
Class<X> exceptionType,
@@ -1114,7 +1114,7 @@ Uses of static <V extends @Nullable Object,
+static <V extends @Nullable Object,
X extends Throwable>
ListenableFuture<V>
Futures.catchingAsync(ListenableFuture<? extends V> input,
Class<X> exceptionType,
@@ -1125,7 +1125,7 @@ Uses of static <V extends @Nullable Object,
+
Futures.getChecked(Future<V> future,
Class<X> exceptionClass)
@@ -1133,7 +1133,7 @@ Uses of Returns the result of Future.get()
, converting most exceptions to a new instance of the
given checked exception type.
-static <V extends @Nullable Object,
+
Futures.getChecked(Future<V> future,
Class<X> exceptionClass,
@@ -1143,7 +1143,7 @@ Uses of Returns the result of Future.get(long, TimeUnit)
, converting most exceptions to a new
instance of the given checked exception type.
-static <V extends @Nullable Object,
+
Futures.getChecked(Future<V> future,
Class<X> exceptionClass,
@@ -1194,14 +1194,14 @@ Uses of Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when
the application is complete.
-static <V extends @Nullable Object>
V
+
Uninterruptibles.getUninterruptibly(Future<V> future,
long timeout,
TimeUnit unit)
Invokes future.
get(timeout, unit)
uninterruptibly.
-static <V extends @Nullable Object>
V
+
Uninterruptibles.getUninterruptibly(Future<V> future,
Duration timeout)
@@ -1227,8 +1227,8 @@ Uses of Invokes unit.
timedJoin(toJoin, timeout)
uninterruptibly.
lazyTransform(Future<I> input,
Function<? super I,? extends O> function)
queue.
put(element)
uninterruptibly.static <O extends @Nullable Object>
ListenableFuture<O>
static <O extends @Nullable Object>
ListenableFuture<O>
scheduleAsync(AsyncCallable<O> callable,
long delay,
TimeUnit timeUnit,
@@ -1266,7 +1266,7 @@ Uses of
Schedules callable
on the specified executor
, returning a Future
.
static <O extends @Nullable Object>
ListenableFuture<O>
static <O extends @Nullable Object>
ListenableFuture<O>
scheduleAsync(AsyncCallable<O> callable,
Duration delay,
ScheduledExecutorService executorService)
TimeoutException
wrapped in an ExecutionException
) if the specified timeout expires.static <V extends @Nullable Object>
ListenableFuture<V>
static <V extends @Nullable Object>
ListenableFuture<V>
withTimeout(ListenableFuture<V> delegate,
long time,
TimeUnit unit,
@@ -1372,7 +1372,7 @@ Uses of
Returns a future that delegates to another but will finish early (via a TimeoutException
wrapped in an ExecutionException
) if the specified duration expires.
static <V extends @Nullable Object>
ListenableFuture<V>
static <V extends @Nullable Object>
ListenableFuture<V>
withTimeout(ListenableFuture<V> delegate,
Duration time,
ScheduledExecutorService scheduledExecutor)
Function
interface; use convert(A)
instead.final @Nullable B
a
as an instance of type B
.a
as an instance of type B
.boolean
a
as an instance of type B
.Most implementations will have no reason to override the behavior of Object.equals(java.lang.Object)
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Defaults.html b/releases/snapshot-android/api/docs/com/google/common/base/Defaults.html
index 06c4cd51fc5b..5668d72640f1 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Defaults.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Defaults.html
@@ -115,7 +115,7 @@
static <T> @Nullable T
static <T> @Nullable T
defaultValue(Class<T> type)
type
as defined by JLS --- 0
for numbers,
@@ -141,7 +141,7 @@ Method Details
defaultValue
-
+
Returns the default value of type
as defined by JLS --- 0
for numbers,
false
for boolean
and '\0'
for char
. For non-primitive types and
void
, null
is returned.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Equivalence.Wrapper.html b/releases/snapshot-android/api/docs/com/google/common/base/Equivalence.Wrapper.html
index 9b4a46fb5e53..fc8bc5748a2c 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Equivalence.Wrapper.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Equivalence.Wrapper.html
@@ -84,7 +84,7 @@
Package com.google.common.base
-Class Equivalence.Wrapper<T extends @Nullable Object>
+Class Equivalence.Wrapper<T extends @Nullable Object>
java.lang.Object
com.google.common.base.Equivalence.Wrapper<T>
@@ -99,7 +99,7 @@ Class Equivalence.Wrapper<
Equivalence<T>
-public static final class Equivalence.Wrapper<T extends @Nullable Object>
+public static final class Equivalence.Wrapper<T extends @Nullable Object>
extends Object
implements Serializable
Wraps an object so that equals(Object)
and hashCode()
delegate to an Equivalence
.
@@ -142,7 +142,7 @@ Method Summary
Method
Description
boolean
-
+
Returns true
if Equivalence.equivalent(Object, Object)
applied to the wrapped
references is true
and both wrappers use the same
@@ -190,7 +190,7 @@ get
equals
-
+
Returns true
if Equivalence.equivalent(Object, Object)
applied to the wrapped
references is true
and both wrappers use the same
equivalence.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Equivalence.html b/releases/snapshot-android/api/docs/com/google/common/base/Equivalence.html
index 25c65c968434..263d338d64a2 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Equivalence.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Equivalence.html
@@ -122,7 +122,7 @@ Nested Class Summary
Class
Description
static final class
-Equivalence.Wrapper<T extends @Nullable Object>
+Equivalence.Wrapper<T extends @Nullable Object>
Wraps an object so that Equivalence.Wrapper.equals(Object)
and Equivalence.Wrapper.hashCode()
delegate to an Equivalence
.
@@ -173,19 +173,19 @@ Method Summary
Returns an equivalence that delegates to Object.equals(java.lang.Object)
and Object.hashCode()
.
final boolean
-equivalent(@Nullable T a,
- @Nullable T b)
+equivalent(@Nullable T a,
+ @Nullable T b)
Returns true
if the given objects are considered equivalent.
-
-equivalentTo(@Nullable T target)
+
+equivalentTo(@Nullable T target)
Returns a predicate that evaluates to true if and only if the input is equivalent to
target
according to this equivalence relation.
final int
-
+
Returns a hash code for t
.
@@ -195,17 +195,17 @@ Method Summary
Returns an equivalence that uses ==
to compare values and System.identityHashCode(Object)
to compute the hash code.
final <F> Equivalence<F>
-onResultOf(Function<? super F,? extends @Nullable T> function)
+onResultOf(Function<? super F,? extends @Nullable T> function)
Returns a new equivalence relation for F
which evaluates equivalence by first applying
function
to the argument, then evaluating using this
.
-final <S extends @Nullable T>
Equivalence<Iterable<S>>
+final <S extends @Nullable T>
Equivalence<Iterable<S>>
pairwise()
Returns an equivalence over iterables based on the equivalence of their elements.
-final <S extends @Nullable T>
Equivalence.Wrapper<S>
+final <S extends @Nullable T>
Equivalence.Wrapper<S>
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,
@@ -246,8 +246,8 @@ Method Details
equivalent
-
+
Returns true
if the given objects are considered equivalent.
This method describes an equivalence relation on object references, meaning that for
@@ -280,7 +280,7 @@
doEquivalent
hash
-
+
Returns a hash code for t
.
The hash
has the following properties:
@@ -317,7 +317,7 @@
doHash
onResultOf
-
+
Returns a new equivalence relation for F
which evaluates equivalence by first applying
function
to the argument, then evaluating using this
. That is, for any pair of
non-null objects x
and y
, equivalence.onResultOf(function).equivalent(a,
@@ -346,7 +346,7 @@ onResultOf
wrap
-public final <S extends @Nullable T>
+
Returns a wrapper of reference
that implements Object.equals()
such that wrap(a).equals(wrap(b))
if and only if equivalent(a,
b)
.
@@ -363,7 +363,7 @@ wrap
pairwise
@GwtCompatible(serializable=true)
-public final <S extends @Nullable T>
+public final <S extends @Nullable T>
Equivalence<Iterable<S>> pairwise()
Returns an equivalence over iterables based on the equivalence of their elements. More
specifically, two iterables are considered equivalent if they both contain the same number of
@@ -382,7 +382,7 @@ pairwise
equivalentTo
-
+
Returns a predicate that evaluates to true if and only if the input is equivalent to
target
according to this equivalence relation.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/FinalizablePhantomReference.html b/releases/snapshot-android/api/docs/com/google/common/base/FinalizablePhantomReference.html
index a4f5a08524ea..f3cf9b9194b3 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/FinalizablePhantomReference.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/FinalizablePhantomReference.html
@@ -127,7 +127,7 @@ Constructor Summary
Constructor
Description
protected
-FinalizablePhantomReference(@Nullable T referent,
+FinalizablePhantomReference(@Nullable T referent,
FinalizableReferenceQueue queue)
Constructs a new finalizable phantom reference.
@@ -165,7 +165,7 @@ Constructor Details
-
FinalizablePhantomReference
-protected FinalizablePhantomReference(@Nullable T referent,
+
Constructs a new finalizable phantom reference.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/FinalizableSoftReference.html b/releases/snapshot-android/api/docs/com/google/common/base/FinalizableSoftReference.html
index b350a448bff9..2525e636a62a 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/FinalizableSoftReference.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/FinalizableSoftReference.html
@@ -124,7 +124,7 @@ Constructor Summary
Constructor
Description
protected
-FinalizableSoftReference(@Nullable T referent,
+FinalizableSoftReference(@Nullable T referent,
FinalizableReferenceQueue queue)
Constructs a new finalizable soft reference.
@@ -162,7 +162,7 @@ Constructor Details
-
FinalizableSoftReference
-protected FinalizableSoftReference(@Nullable T referent,
+
Constructs a new finalizable soft reference.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/FinalizableWeakReference.html b/releases/snapshot-android/api/docs/com/google/common/base/FinalizableWeakReference.html
index 7b093a66a9a4..4c0fe6a1a5f8 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/FinalizableWeakReference.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/FinalizableWeakReference.html
@@ -124,7 +124,7 @@ Constructor Summary
Constructor
Description
protected
-FinalizableWeakReference(@Nullable T referent,
+FinalizableWeakReference(@Nullable T referent,
FinalizableReferenceQueue queue)
Constructs a new finalizable weak reference.
@@ -159,7 +159,7 @@ Constructor Details
-
FinalizableWeakReference
-protected FinalizableWeakReference(@Nullable T referent,
+
Constructs a new finalizable weak reference.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Function.html b/releases/snapshot-android/api/docs/com/google/common/base/Function.html
index f1ff741d989c..6d804d132fdc 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Function.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Function.html
@@ -84,7 +84,7 @@
Package com.google.common.base
-Interface Function<F extends @Nullable Object,T extends @Nullable Object>
+Interface Function<F extends @Nullable Object,T extends @Nullable Object>
@@ -97,7 +97,7 @@ Interface Function<F extends @Nu
+
public interface Function<F extends @Nullable Object,T extends @Nullable Object>
Determines an output value based on an input value; a pre-Java-8 version of java.util.function.Function
.
The Functions
class provides common functions and related utilities.
@@ -142,7 +142,7 @@
Method Summary
Returns the result of applying this function to input
.
boolean
-
+
May return true
if object
is a Function
that behaves identically
to this function.
@@ -183,7 +183,7 @@ apply
-
equals
-
+
May return true
if object
is a Function
that behaves identically
to this function.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Functions.html b/releases/snapshot-android/api/docs/com/google/common/base/Functions.html
index 959b41134ce8..f522cb8dfaf7 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Functions.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Functions.html
@@ -120,44 +120,44 @@ Method Summary
Modifier and Type
Method
Description
-static <A extends @Nullable Object,
-B extends @Nullable Object,
-C extends @Nullable Object>
Function<A,C>
+static <A extends @Nullable Object,
+B extends @Nullable Object,
+C extends @Nullable Object>
Function<A,C>
Returns the composition of two functions.
-
+
constant(E value)
Returns a function that ignores its input and always returns value
.
-
+
Returns a function which performs a map lookup with a default value.
-
+
Returns a function which performs a map lookup.
-
+
forPredicate(Predicate<T> predicate)
Creates a function that returns the same boolean output as the given predicate for all inputs.
-
+
forSupplier(Supplier<T> supplier)
Returns a function that ignores its input and returns the result of supplier.get()
.
-
+
identity()
Returns the identity function.
@@ -209,7 +209,7 @@ toStringFunction
-
identity
-public static <E extends @Nullable Object>
+
Returns the identity function.
@@ -220,8 +220,8 @@ identity
-
forMap
-public static <K extends @Nullable Object,
-V extends @Nullable Object>
+public static <K extends @Nullable Object,
+V extends @Nullable Object>
Function<K,V> forMap(Map<K,V> map)
Returns a function which performs a map lookup. The returned function throws an IllegalArgumentException
if given a key that does not exist in the map. See also forMap(Map, Object)
, which returns a default value in this case.
@@ -237,8 +237,8 @@ forMap
-
forMap
-public static <K extends @Nullable Object,
-V extends @Nullable Object>
+public static <K extends @Nullable Object,
+V extends @Nullable Object>
Function<K,V> forMap(Map<K,? extends V> map,
V defaultValue)
Returns a function which performs a map lookup with a default value. The function created by
@@ -260,9 +260,9 @@ forMap
-
compose
-public static <A extends @Nullable Object,
-B extends @Nullable Object,
-C extends @Nullable Object>
+public static <A extends @Nullable Object,
+B extends @Nullable Object,
+C extends @Nullable Object>
Function<A,C> compose(Function<B,C> g,
Function<A,? extends B> f)
Returns the composition of two functions. For f: A->B
and g: B->C
, composition
@@ -288,7 +288,7 @@ compose
-
forPredicate
-public static <T extends @Nullable Object>
+
Creates a function that returns the same boolean output as the given predicate for all inputs.
@@ -300,8 +300,8 @@ forPredicate
-
constant
-
+
Returns a function that ignores its input and always returns value
.
Java 8+ users: use the lambda expression o -> value
instead.
@@ -316,8 +316,8 @@ constant
-
forSupplier
-public static <F extends @Nullable Object,
-T extends @Nullable Object>
+public static <F extends @Nullable Object,
+T extends @Nullable Object>
Function<F,T> forSupplier(Supplier<T> supplier)
Returns a function that ignores its input and returns the result of supplier.get()
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Joiner.html b/releases/snapshot-android/api/docs/com/google/common/base/Joiner.html
index 601fc43343c9..506df8baefd3 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Joiner.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Joiner.html
@@ -163,16 +163,16 @@ Method Summary
Description
final <A extends Appendable>
A
+ @Nullable Object[] parts)
Appends the string representation of each of parts
, using the previously configured
separator between each, to appendable
.
final <A extends Appendable>
A
appendTo(A appendable,
- @Nullable Object first,
- @Nullable Object second,
- @Nullable Object... rest)
+ @Nullable Object first,
+ @Nullable Object second,
+ @Nullable Object... rest)
Appends to appendable
the string representation of each of the remaining arguments.
@@ -192,16 +192,16 @@ Method Summary
final StringBuilder
appendTo(StringBuilder builder,
- @Nullable Object[] parts)
+ @Nullable Object[] parts)
Appends the string representation of each of parts
, using the previously configured
separator between each, to builder
.
final StringBuilder
appendTo(StringBuilder builder,
- @Nullable Object first,
- @Nullable Object second,
- @Nullable Object... rest)
+ @Nullable Object first,
+ @Nullable Object second,
+ @Nullable Object... rest)
Appends to builder
the string representation of each of the remaining arguments.
@@ -220,15 +220,15 @@ Method Summary
separator between each, to builder
.
final String
-
+
Returns a string containing the string representation of each of parts
, using the
previously configured separator between each.
final String
-
+
Returns a string containing the string representation of each argument, using the previously
configured separator between each.
@@ -347,7 +347,7 @@ appendTo
appendTo
@CanIgnoreReturnValue
public final <A extends Appendable> A appendTo(A appendable,
- @Nullable Object[] parts)
+ @Nullable Object[] parts)
throws IOException
Appends the string representation of each of parts
, using the previously configured
separator between each, to appendable
.
@@ -362,9 +362,9 @@ appendTo
appendTo
@CanIgnoreReturnValue
public final <A extends Appendable> A appendTo(A appendable,
- @Nullable Object first,
- @Nullable Object second,
- @Nullable Object... rest)
+ @Nullable Object first,
+ @Nullable Object second,
+ @Nullable Object... rest)
throws IOException
Appends to appendable
the string representation of each of the remaining arguments.
@@ -402,7 +402,7 @@ appendTo
appendTo
@CanIgnoreReturnValue
public final StringBuilder appendTo(StringBuilder builder,
- @Nullable Object[] parts)
+ @Nullable Object[] parts)
Appends the string representation of each of parts
, using the previously configured
separator between each, to builder
. Identical to appendTo(Appendable, Iterable)
, except that it does not throw IOException
.
@@ -412,9 +412,9 @@ appendTo
appendTo
@CanIgnoreReturnValue
public final StringBuilder appendTo(StringBuilder builder,
- @Nullable Object first,
- @Nullable Object second,
- @Nullable Object... rest)
+ @Nullable Object first,
+ @Nullable Object second,
+ @Nullable Object... rest)
Appends to builder
the string representation of each of the remaining arguments.
Identical to appendTo(Appendable, Object, Object, Object...)
, except that it does not
throw IOException
.
@@ -443,7 +443,7 @@ join
-
join
-
+
Returns a string containing the string representation of each of parts
, using the
previously configured separator between each.
@@ -451,9 +451,9 @@ join
-
join
-public final String join(@Nullable Object first,
- @Nullable Object second,
- @Nullable Object... rest)
+public final String join(@Nullable Object first,
+ @Nullable Object second,
+ @Nullable Object... rest)
Returns a string containing the string representation of each argument, using the previously
configured separator between each.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/MoreObjects.ToStringHelper.html b/releases/snapshot-android/api/docs/com/google/common/base/MoreObjects.ToStringHelper.html
index fe3e1613c426..245f1ea5a2dd 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/MoreObjects.ToStringHelper.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/MoreObjects.ToStringHelper.html
@@ -156,7 +156,7 @@ Method Summary
+ @Nullable Object value)
Adds a name/value pair to the formatted output in name=value
format.
@@ -191,7 +191,7 @@ Method Summary
Adds an unnamed value to the formatted output.
-
+
Adds an unnamed value to the formatted output.
@@ -267,7 +267,7 @@ omitEmptyValues
add
+ @Nullable Object value)
Adds a name/value pair to the formatted output in name=value
format. If value
is null
, the string "null"
is used, unless omitNullValues()
is
called, in which case this name/value pair will not be added.
@@ -355,7 +355,7 @@ add
addValue
+public MoreObjects.ToStringHelper addValue(@Nullable Object value)
Adds an unnamed value to the formatted output.
It is strongly encouraged to use add(String, Object)
instead and give value a
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/MoreObjects.html b/releases/snapshot-android/api/docs/com/google/common/base/MoreObjects.html
index ebe0a802e09b..680955041bb5 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/MoreObjects.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/MoreObjects.html
@@ -136,8 +136,8 @@
Method Summary
Method
Description
static <T> T
-firstNonNull(@Nullable T first,
- @Nullable T second)
+firstNonNull(@Nullable T first,
+ @Nullable T second)
Returns the first of two given parameters that is not null
, if either is, or otherwise
throws a NullPointerException
.
@@ -178,8 +178,8 @@ Method Details
-
firstNonNull
-
+
Returns the first of two given parameters that is not null
, if either is, or otherwise
throws a NullPointerException
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Objects.html b/releases/snapshot-android/api/docs/com/google/common/base/Objects.html
index f24a98b9f4bb..88e97b513886 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Objects.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Objects.html
@@ -119,13 +119,13 @@ Method Summary
Method
Description
static boolean
-
+
Determines whether two possibly-null objects are equal.
static int
-
+
Generates a hash code for multiple values.
@@ -149,8 +149,8 @@ Method Details
-
equal
-
+
Determines whether two possibly-null objects are equal. Returns:
@@ -169,7 +169,7 @@ equal
-
hashCode
-
+
Generates a hash code for multiple values. The hash code is generated by calling Arrays.hashCode(Object[])
. Note that array arguments to this method, with the exception of a
single Object array, do not get any special handling; their hash codes are based on identity
and not contents.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Optional.html b/releases/snapshot-android/api/docs/com/google/common/base/Optional.html
index 1fb70542a603..df359f8f99d8 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Optional.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Optional.html
@@ -191,19 +191,19 @@ Method Summary
is present; an empty immutable Set
otherwise.
abstract boolean
-
+
Returns true
if object
is an Optional
instance, and either the
contained references are equal to each other or both are absent.
-static <T> @Nullable Optional<T>
-fromJavaUtil(@Nullable Optional<T> javaUtilOptional)
+
+fromJavaUtil(@Nullable Optional<T> javaUtilOptional)
Returns the equivalent com.google.common.base.Optional
value to the given
java.util.Optional
, or null
if the argument is null.
static <T> Optional<T>
-fromNullable(@Nullable T nullableReference)
+fromNullable(@Nullable T nullableReference)
If nullableReference
is non-null, returns an Optional
instance containing that
reference; otherwise returns absent()
.
@@ -243,7 +243,7 @@ Method Summary
Returns the contained instance if it is present; defaultValue
otherwise.
-abstract @Nullable T
+
orNull()
Returns the contained instance if it is present; null
otherwise.
@@ -259,8 +259,8 @@ Method Summary
Returns the equivalent java.util.Optional
value to this optional.
-static <T> @Nullable Optional<T>
-toJavaUtil(@Nullable Optional<T> googleOptional)
+
+toJavaUtil(@Nullable Optional<T> googleOptional)
Returns the equivalent java.util.Optional
value to the given
com.google.common.base.Optional
, or null
if the argument is null.
@@ -320,7 +320,7 @@ of
-
fromNullable
-
+
If nullableReference
is non-null, returns an Optional
instance containing that
reference; otherwise returns absent()
.
@@ -331,7 +331,7 @@ fromNullable
-
fromJavaUtil
-
+
Returns the equivalent com.google.common.base.Optional
value to the given
java.util.Optional
, or null
if the argument is null.
@@ -343,7 +343,7 @@ fromJavaUtil
-
toJavaUtil
-
+
Returns the equivalent java.util.Optional
value to the given
com.google.common.base.Optional
, or null
if the argument is null.
@@ -469,7 +469,7 @@ or
-
orNull
-
+
Returns the contained instance if it is present; null
otherwise. If the instance is
known to be present, use get()
instead.
@@ -527,7 +527,7 @@ transform
-
equals
-
+
Returns true
if object
is an Optional
instance, and either the
contained references are equal to each other or both are absent.
Note that Optional
instances of differing parameterized types can be equal.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Preconditions.html b/releases/snapshot-android/api/docs/com/google/common/base/Preconditions.html
index 2e0d70e75c9b..5096b2e63855 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Preconditions.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Preconditions.html
@@ -202,15 +202,15 @@ Method Summary
static void
checkArgument(boolean expression,
- @Nullable Object errorMessage)
+ @Nullable Object errorMessage)
Ensures the truth of an expression involving one or more parameters to the calling method.
static void
checkArgument(boolean expression,
- @Nullable String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2)
+ @Nullable String errorMessageTemplate,
+ @Nullable Object p1,
+ @Nullable Object p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
@@ -249,7 +249,7 @@ Method Summary
checkArgument(boolean expression,
String errorMessageTemplate,
char p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
@@ -288,7 +288,7 @@ Method Summary
checkArgument(boolean expression,
String errorMessageTemplate,
int p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
@@ -327,28 +327,28 @@ Method Summary
checkArgument(boolean expression,
String errorMessageTemplate,
long p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
static void
checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1)
+ @Nullable Object p1)
Ensures the truth of an expression involving one or more parameters to the calling method.
static void
checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object @Nullable ... errorMessageArgs)
+ @Nullable Object @Nullable ... errorMessageArgs)
Ensures the truth of an expression involving one or more parameters to the calling method.
static void
checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
char p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
@@ -356,7 +356,7 @@ Method Summary
static void
checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
int p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
@@ -364,7 +364,7 @@ Method Summary
static void
checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
long p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
@@ -372,19 +372,19 @@ Method Summary
static void
checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3)
Ensures the truth of an expression involving one or more parameters to the calling method.
static void
checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3,
- @Nullable Object p4)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3,
+ @Nullable Object p4)
Ensures the truth of an expression involving one or more parameters to the calling method.
@@ -404,25 +404,25 @@ Method Summary
size
.
static <T> T
-checkNotNull(@Nullable T reference)
+checkNotNull(@Nullable T reference)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
- @Nullable Object errorMessage)
+checkNotNull(@Nullable T reference,
+ @Nullable Object errorMessage)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
char p1)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
char p1,
char p2)
@@ -430,7 +430,7 @@ Method Summary
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
char p1,
int p2)
@@ -438,7 +438,7 @@ Method Summary
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
char p1,
long p2)
@@ -446,22 +446,22 @@ Method Summary
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
char p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
int p1)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
int p1,
char p2)
@@ -469,7 +469,7 @@ Method Summary
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
int p1,
int p2)
@@ -477,7 +477,7 @@ Method Summary
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
int p1,
long p2)
@@ -485,22 +485,22 @@ Method Summary
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
int p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
long p1)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
long p1,
char p2)
@@ -508,7 +508,7 @@ Method Summary
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
long p1,
int p2)
@@ -516,7 +516,7 @@ Method Summary
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
long p1,
long p2)
@@ -524,75 +524,75 @@ Method Summary
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
long p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1)
+ @Nullable Object p1)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object @Nullable ... errorMessageArgs)
+ @Nullable Object @Nullable ... errorMessageArgs)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
char p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
int p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
long p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2)
+ @Nullable Object p1,
+ @Nullable Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3)
Ensures that an object reference passed as a parameter to the calling method is not null.
static <T> T
-checkNotNull(@Nullable T reference,
+checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3,
- @Nullable Object p4)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3,
+ @Nullable Object p4)
Ensures that an object reference passed as a parameter to the calling method is not null.
@@ -627,15 +627,15 @@ Method Summary
static void
checkState(boolean expression,
- @Nullable Object errorMessage)
+ @Nullable Object errorMessage)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
static void
checkState(boolean expression,
- @Nullable String errorMessageTemplate,
- @Nullable Object @Nullable ... errorMessageArgs)
+ @Nullable String errorMessageTemplate,
+ @Nullable Object @Nullable ... errorMessageArgs)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -679,7 +679,7 @@ Method Summary
checkState(boolean expression,
String errorMessageTemplate,
char p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -723,7 +723,7 @@ Method Summary
checkState(boolean expression,
String errorMessageTemplate,
int p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -767,7 +767,7 @@ Method Summary
checkState(boolean expression,
String errorMessageTemplate,
long p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -775,7 +775,7 @@ Method Summary
static void
checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1)
+ @Nullable Object p1)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -783,7 +783,7 @@ Method Summary
static void
checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
char p2)
Ensures the truth of an expression involving the state of the calling instance, but not
@@ -792,7 +792,7 @@ Method Summary
static void
checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
int p2)
Ensures the truth of an expression involving the state of the calling instance, but not
@@ -801,7 +801,7 @@ Method Summary
static void
checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
long p2)
Ensures the truth of an expression involving the state of the calling instance, but not
@@ -810,8 +810,8 @@ Method Summary
static void
checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2)
+ @Nullable Object p1,
+ @Nullable Object p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -819,9 +819,9 @@ Method Summary
static void
checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -829,10 +829,10 @@ Method Summary
static void
checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3,
- @Nullable Object p4)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3,
+ @Nullable Object p4)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -871,7 +871,7 @@ checkArgument
checkArgument
+ @Nullable Object errorMessage)
Ensures the truth of an expression involving one or more parameters to the calling method.
Ensures the truth of an expression involving one or more parameters to the calling method.
- Parameters:
@@ -955,7 +955,7 @@ checkArgument
checkArgument
public static void checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1)
+ @Nullable Object p1)
Ensures the truth of an expression involving one or more parameters to the calling method.
See checkArgument(boolean, String, Object...)
for details.
@@ -1019,7 +1019,7 @@ checkArgument
public static void checkArgument(boolean expression,
String errorMessageTemplate,
char p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
See checkArgument(boolean, String, Object...)
for details.
@@ -1083,7 +1083,7 @@ checkArgument
public static void checkArgument(boolean expression,
String errorMessageTemplate,
int p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
See checkArgument(boolean, String, Object...)
for details.
@@ -1147,7 +1147,7 @@ checkArgument
public static void checkArgument(boolean expression,
String errorMessageTemplate,
long p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
See checkArgument(boolean, String, Object...)
for details.
@@ -1162,7 +1162,7 @@ checkArgument
checkArgument
public static void checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
char p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
@@ -1178,7 +1178,7 @@ checkArgument
checkArgument
public static void checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
int p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
@@ -1194,7 +1194,7 @@ checkArgument
checkArgument
public static void checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
long p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
@@ -1209,9 +1209,9 @@ checkArgument
checkArgument
public static void checkArgument(boolean expression,
- @Nullable String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2)
+ @Nullable String errorMessageTemplate,
+ @Nullable Object p1,
+ @Nullable Object p2)
Ensures the truth of an expression involving one or more parameters to the calling method.
See checkArgument(boolean, String, Object...)
for details.
@@ -1226,9 +1226,9 @@ checkArgument
checkArgument
public static void checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3)
Ensures the truth of an expression involving one or more parameters to the calling method.
See checkArgument(boolean, String, Object...)
for details.
@@ -1243,10 +1243,10 @@ checkArgument
checkArgument
public static void checkArgument(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3,
- @Nullable Object p4)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3,
+ @Nullable Object p4)
Ensures the truth of an expression involving one or more parameters to the calling method.
See checkArgument(boolean, String, Object...)
for details.
@@ -1280,7 +1280,7 @@ checkState
checkState
+ @Nullable Object errorMessage)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1381,7 +1381,7 @@ checkState
checkState
public static void checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1)
+ @Nullable Object p1)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1449,7 +1449,7 @@ checkState
public static void checkState(boolean expression,
String errorMessageTemplate,
char p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1517,7 +1517,7 @@ checkState
public static void checkState(boolean expression,
String errorMessageTemplate,
int p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1585,7 +1585,7 @@ checkState
public static void checkState(boolean expression,
String errorMessageTemplate,
long p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1601,7 +1601,7 @@ checkState
checkState
public static void checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
char p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1618,7 +1618,7 @@ checkState
checkState
public static void checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
int p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1635,7 +1635,7 @@ checkState
checkState
public static void checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
long p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1652,8 +1652,8 @@ checkState
checkState
public static void checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2)
+ @Nullable Object p1,
+ @Nullable Object p2)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1669,9 +1669,9 @@ checkState
checkState
public static void checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1687,10 +1687,10 @@ checkState
checkState
public static void checkState(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3,
- @Nullable Object p4)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3,
+ @Nullable Object p4)
Ensures the truth of an expression involving the state of the calling instance, but not
involving any parameters to the calling method.
@@ -1705,7 +1705,7 @@ checkState
checkNotNull
+public static <T> T checkNotNull(@Nullable T reference)
Ensures that an object reference passed as a parameter to the calling method is not null.
- Parameters:
@@ -1727,8 +1727,8 @@ checkNotNull
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
- @Nullable Object errorMessage)
+public static <T> T checkNotNull(@Nullable T reference,
+ @Nullable Object errorMessage)
Ensures that an object reference passed as a parameter to the calling method is not null.
- Parameters:
@@ -1752,9 +1752,9 @@ checkNotNull
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object @Nullable ... errorMessageArgs)
+ @Nullable Object @Nullable ... errorMessageArgs)
Ensures that an object reference passed as a parameter to the calling method is not null.
- Parameters:
@@ -1783,7 +1783,7 @@ chec
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
char p1)
Ensures that an object reference passed as a parameter to the calling method is not null.
@@ -1799,7 +1799,7 @@ checkNotNull
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
int p1)
Ensures that an object reference passed as a parameter to the calling method is not null.
@@ -1815,7 +1815,7 @@ checkNotNull
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
long p1)
Ensures that an object reference passed as a parameter to the calling method is not null.
@@ -1831,9 +1831,9 @@ checkNotNull
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1)
+ @Nullable Object p1)
Ensures that an object reference passed as a parameter to the calling method is not null.
See checkNotNull(Object, String, Object...)
for details.
@@ -1847,7 +1847,7 @@ checkN
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
char p1,
char p2)
@@ -1864,7 +1864,7 @@ checkNotNull<
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
char p1,
int p2)
@@ -1881,7 +1881,7 @@ checkNotNull
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
char p1,
long p2)
@@ -1898,10 +1898,10 @@ checkNotNull<
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
char p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
See checkNotNull(Object, String, Object...)
for details.
@@ -1915,7 +1915,7 @@ c
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
int p1,
char p2)
@@ -1932,7 +1932,7 @@ checkNotNull
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
int p1,
int p2)
@@ -1949,7 +1949,7 @@ checkNotNull
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
int p1,
long p2)
@@ -1966,10 +1966,10 @@ checkNotNull
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
int p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
See checkNotNull(Object, String, Object...)
for details.
@@ -1983,7 +1983,7 @@ ch
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
long p1,
char p2)
@@ -2000,7 +2000,7 @@ checkNotNull<
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
long p1,
int p2)
@@ -2017,7 +2017,7 @@ checkNotNull
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
long p1,
long p2)
@@ -2034,10 +2034,10 @@ checkNotNull<
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
long p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
See checkNotNull(Object, String, Object...)
for details.
@@ -2051,9 +2051,9 @@ c
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
char p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
@@ -2068,9 +2068,9 @@ c
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
int p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
@@ -2085,9 +2085,9 @@ ch
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
long p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
@@ -2102,10 +2102,10 @@ c
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2)
+ @Nullable Object p1,
+ @Nullable Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.
See checkNotNull(Object, String, Object...)
for details.
@@ -2119,11 +2119,11 @@
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3)
Ensures that an object reference passed as a parameter to the calling method is not null.
See checkNotNull(Object, String, Object...)
for details.
@@ -2137,12 +2137,12 @@
checkNotNull
@CanIgnoreReturnValue
-public static <T> T checkNotNull(@Nullable T reference,
+public static <T> T checkNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3,
- @Nullable Object p4)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3,
+ @Nullable Object p4)
Ensures that an object reference passed as a parameter to the calling method is not null.
See checkNotNull(Object, String, Object...)
for details.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Predicate.html b/releases/snapshot-android/api/docs/com/google/common/base/Predicate.html
index c1906592da9a..a15cecfbb3cb 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Predicate.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Predicate.html
@@ -84,7 +84,7 @@
Package com.google.common.base
-Interface Predicate<T extends @Nullable Object>
+Interface Predicate<T extends @Nullable Object>
@@ -93,7 +93,7 @@ Interface Predicate<T extends @
+public interface Predicate<T extends @Nullable Object>
Determines a true or false value for a given input; a pre-Java-8 version of java.util.function.Predicate
.
The Predicates
class provides common predicates and related utilities.
@@ -140,7 +140,7 @@
Method Summary
class documentation above).
boolean
-
+
Indicates whether another object is equal to this predicate.
@@ -181,7 +181,7 @@ apply
-
equals
-
+
Indicates whether another object is equal to this predicate.
Most implementations will have no reason to override the behavior of Object.equals(java.lang.Object)
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Predicates.html b/releases/snapshot-android/api/docs/com/google/common/base/Predicates.html
index dcca33345502..7d3ff855caf1 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Predicates.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Predicates.html
@@ -119,37 +119,37 @@
Method Summary
Modifier and Type
Method
Description
-
+
Returns a predicate that always evaluates to false
.
-
+
Returns a predicate that always evaluates to true
.
-
+
Returns a predicate that evaluates to true
if each of its components evaluates to
true
.
-
+
Returns a predicate that evaluates to true
if both of its components evaluate to
true
.
-
+
Returns a predicate that evaluates to true
if each of its components evaluates to
true
.
-
+
@@ -167,56 +167,56 @@ Method Summary
Returns a predicate that evaluates to true
if the CharSequence
being tested
contains any match for the given regular expression pattern.
-
+
equalTo(T target)
Returns a predicate that evaluates to true
if the object being tested equals()
the given target or both are null.
-
+
in(Collection<? extends T> target)
Returns a predicate that evaluates to true
if the object reference being tested is a
member of the given collection.
-
+
instanceOf(Class<?> clazz)
Returns a predicate that evaluates to true
if the object being tested is an instance of
the given class.
-
+
isNull()
Returns a predicate that evaluates to true
if the object reference being tested is
null.
-
+
Returns a predicate that evaluates to true
if the given predicate evaluates to
false
.
-
+
notNull()
Returns a predicate that evaluates to true
if the object reference being tested is not
null.
-
+
Returns a predicate that evaluates to true
if any one of its components evaluates to
true
.
-
+
Returns a predicate that evaluates to true
if either of its components evaluates to
true
.
-
+
Returns a predicate that evaluates to true
if any one of its components evaluates to
@@ -249,7 +249,7 @@ Method Details
alwaysTrue
@GwtCompatible(serializable=true)
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> alwaysTrue()
Returns a predicate that always evaluates to true
.
@@ -258,7 +258,7 @@ alwaysTrue
alwaysFalse
@GwtCompatible(serializable=true)
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> alwaysFalse()
Returns a predicate that always evaluates to false
.
@@ -267,7 +267,7 @@ alwaysFalse
isNull
@GwtCompatible(serializable=true)
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> isNull()
Returns a predicate that evaluates to true
if the object reference being tested is
null.
@@ -277,7 +277,7 @@ isNull
notNull
@GwtCompatible(serializable=true)
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> notNull()
Returns a predicate that evaluates to true
if the object reference being tested is not
null.
@@ -286,7 +286,7 @@ notNull
-
not
-public static <T extends @Nullable Object>
+
Returns a predicate that evaluates to true
if the given predicate evaluates to
false
.
@@ -295,7 +295,7 @@ not
-
and
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> and(Iterable<? extends Predicate<? super T>> components)
Returns a predicate that evaluates to true
if each of its components evaluates to
true
. The components are evaluated in order, and evaluation will be "short-circuited"
@@ -308,7 +308,7 @@ and
and
@SafeVarargs
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> and(Predicate<? super T>... components)
Returns a predicate that evaluates to true
if each of its components evaluates to
true
. The components are evaluated in order, and evaluation will be "short-circuited"
@@ -320,7 +320,7 @@ and
-
and
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> and(Predicate<? super T> first,
Predicate<? super T> second)
Returns a predicate that evaluates to true
if both of its components evaluate to
@@ -331,7 +331,7 @@ and
-
or
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> or(Iterable<? extends Predicate<? super T>> components)
Returns a predicate that evaluates to true
if any one of its components evaluates to
true
. The components are evaluated in order, and evaluation will be "short-circuited"
@@ -344,7 +344,7 @@ or
or
@SafeVarargs
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> or(Predicate<? super T>... components)
Returns a predicate that evaluates to true
if any one of its components evaluates to
true
. The components are evaluated in order, and evaluation will be "short-circuited"
@@ -356,7 +356,7 @@ or
-
or
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> or(Predicate<? super T> first,
Predicate<? super T> second)
Returns a predicate that evaluates to true
if either of its components evaluates to
@@ -367,7 +367,7 @@ or
-
equalTo
-public static <T extends @Nullable Object>
+
Returns a predicate that evaluates to true
if the object being tested equals()
the given target or both are null.
@@ -377,7 +377,7 @@ equalTo
instanceOf
@GwtIncompatible
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Predicate<T> instanceOf(Class<?> clazz)
Returns a predicate that evaluates to true
if the object being tested is an instance of
the given class. If the object being tested is null
this predicate evaluates to
@@ -415,7 +415,7 @@ subtypeOf
-
in
-public static <T extends @Nullable Object>
+
Returns a predicate that evaluates to true
if the object reference being tested is a
member of the given collection. It does not defensively copy the collection passed in, so
@@ -433,8 +433,8 @@ in
-
compose
-public static <A extends @Nullable Object,
-B extends @Nullable Object>
+public static <A extends @Nullable Object,
+B extends @Nullable Object>
Predicate<A> compose(Predicate<B> predicate,
Function<A,? extends B> function)
Returns the composition of a function and a predicate. For every x
, the generated
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/StandardSystemProperty.html b/releases/snapshot-android/api/docs/com/google/common/base/StandardSystemProperty.html
index 31b5158e9f29..a019589dc79e 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/StandardSystemProperty.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/StandardSystemProperty.html
@@ -266,7 +266,7 @@ Method Summary
Returns a string representation of this system property.
-@Nullable String
+
value()
Returns the current value for this system property by delegating to System.getProperty(String)
.
@@ -553,7 +553,7 @@ key
-
value
-
+
Returns the current value for this system property by delegating to System.getProperty(String)
.
The value returned by this method is non-null except in rare circumstances:
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Strings.html b/releases/snapshot-android/api/docs/com/google/common/base/Strings.html
index 19bfff1a870c..6a3f77ee335d 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Strings.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Strings.html
@@ -129,26 +129,26 @@
Method Summary
Returns the longest string suffix
such that a.toString().endsWith(suffix) &&
b.toString().endsWith(suffix)
, taking care not to split surrogate pairs.
-static @Nullable String
-emptyToNull(@Nullable String string)
+
+emptyToNull(@Nullable String string)
Returns the given string if it is nonempty; null
otherwise.
static boolean
-isNullOrEmpty(@Nullable String string)
+isNullOrEmpty(@Nullable String string)
Returns true
if the given string is null or is the empty string.
static String
-lenientFormat(@Nullable String template,
- @Nullable Object @Nullable ... args)
+
Returns the given template
string with each occurrence of "%s"
replaced with
the corresponding argument value from args
; or, if the placeholder and argument counts
do not match, returns a best-effort form of that string.
static String
-nullToEmpty(@Nullable String string)
+nullToEmpty(@Nullable String string)
Returns the given string if it is non-null; the empty string otherwise.
@@ -194,7 +194,7 @@ Method Details
-
nullToEmpty
-
+
Returns the given string if it is non-null; the empty string otherwise.
- Parameters:
@@ -207,7 +207,7 @@ nullToEmpty
-
emptyToNull
-
+
Returns the given string if it is nonempty; null
otherwise.
- Parameters:
@@ -220,7 +220,7 @@ emptyToNull
-
isNullOrEmpty
-
+
Returns true
if the given string is null or is the empty string.
Consider normalizing your string references with nullToEmpty(java.lang.String)
. If you do, you can
@@ -339,8 +339,8 @@
commonSuffix
-
lenientFormat
-public static String lenientFormat(@Nullable String template,
- @Nullable Object @Nullable ... args)
+public static String lenientFormat(@Nullable String template,
+ @Nullable Object @Nullable ... args)
Returns the given template
string with each occurrence of "%s"
replaced with
the corresponding argument value from args
; or, if the placeholder and argument counts
do not match, returns a best-effort form of that string. Will not throw an exception under
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Supplier.html b/releases/snapshot-android/api/docs/com/google/common/base/Supplier.html
index 2f99a596415f..613f9c778c41 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Supplier.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Supplier.html
@@ -84,12 +84,12 @@
Package com.google.common.base
-Interface Supplier<T extends @Nullable Object>
+Interface Supplier<T extends @Nullable Object>
+public interface Supplier<T extends @Nullable Object>
A class that can supply objects of a single type; a pre-Java-8 version of java.util.function.Supplier
. Semantically, this could be a factory,
generator, builder, closure, or something else entirely. No guarantees are implied by this
interface.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Suppliers.html b/releases/snapshot-android/api/docs/com/google/common/base/Suppliers.html
index 070f1a4178d5..d45cabf9dbff 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Suppliers.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Suppliers.html
@@ -117,20 +117,20 @@ Method Summary
Modifier and Type
Method
Description
-
+
Returns a new supplier which is the composition of the provided function and supplier.
-
+
Returns a supplier which caches the instance retrieved during the first call to get()
and returns that value on subsequent calls to get()
.
-
+
memoizeWithExpiration(Supplier<T> delegate,
long duration,
TimeUnit unit)
@@ -138,24 +138,24 @@ Method Summary
Returns a supplier that caches the instance supplied by the delegate and removes the cached
value after the specified time has passed.
-
+
memoizeWithExpiration(Supplier<T> delegate,
Duration duration)
Returns a supplier that caches the instance supplied by the delegate and removes the cached
value after the specified time has passed.
-
+
ofInstance(T instance)
Returns a supplier that always supplies instance
.
-
+
Returns a function that accepts a supplier and returns the result of invoking Supplier.get()
on that supplier.
-
+
synchronizedSupplier(Supplier<T> delegate)
Returns a supplier whose get()
method synchronizes on delegate
before calling
@@ -181,8 +181,8 @@ Method Details
-
compose
-public static <F extends @Nullable Object,
-T extends @Nullable Object>
+public static <F extends @Nullable Object,
+T extends @Nullable Object>
Supplier<T> compose(Function<? super F,T> function,
Supplier<F> supplier)
Returns a new supplier which is the composition of the provided function and supplier. In other
@@ -194,7 +194,7 @@ compose
-
memoize
-public static <T extends @Nullable Object>
+
Returns a supplier which caches the instance retrieved during the first call to get()
and returns that value on subsequent calls to get()
. See: memoization
@@ -214,7 +214,7 @@ memoize
-
memoizeWithExpiration
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Supplier<T> memoizeWithExpiration(Supplier<T> delegate,
long duration,
TimeUnit unit)
@@ -246,7 +246,7 @@ memoizeWithExpiration
memoizeWithExpiration
@GwtIncompatible
-public static <T extends @Nullable Object>
+public static <T extends @Nullable Object>
Supplier<T> memoizeWithExpiration(Supplier<T> delegate,
Duration duration)
Returns a supplier that caches the instance supplied by the delegate and removes the cached
@@ -275,7 +275,7 @@ memoizeWithExpiration
-
ofInstance
-public static <T extends @Nullable Object>
+
Returns a supplier that always supplies instance
.
@@ -283,7 +283,7 @@ ofInstance
-
synchronizedSupplier
-public static <T extends @Nullable Object>
+
Returns a supplier whose get()
method synchronizes on delegate
before calling
it, making it thread-safe.
@@ -292,7 +292,7 @@ synchronizedSupplier
-
supplierFunction
-public static <T extends @Nullable Object>
+
Returns a function that accepts a supplier and returns the result of invoking Supplier.get()
on that supplier.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Throwables.html b/releases/snapshot-android/api/docs/com/google/common/base/Throwables.html
index 2bcb5187fb39..506f269c663d 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Throwables.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Throwables.html
@@ -122,7 +122,7 @@ Method Summary
Gets a Throwable
cause chain as a list.
-static <X extends Throwable>
@Nullable X
+
getCauseAs(Throwable throwable,
Class<X> expectedCauseType)
@@ -165,7 +165,7 @@ Method Summary
static <X extends Throwable>
void
-propagateIfInstanceOf(@Nullable Throwable throwable,
+propagateIfInstanceOf(@Nullable Throwable throwable,
Class<X> declaredType)
Deprecated.
@@ -174,7 +174,7 @@ Method Summary
static void
-propagateIfPossible(@Nullable Throwable throwable)
+propagateIfPossible(@Nullable Throwable throwable)
Deprecated.
Use throwIfUnchecked(java.lang.Throwable)
, which has the same behavior but rejects
@@ -182,7 +182,7 @@ Method Summary
static <X extends Throwable>
void
-propagateIfPossible(@Nullable Throwable throwable,
+propagateIfPossible(@Nullable Throwable throwable,
Class<X> declaredType)
Deprecated.
@@ -192,7 +192,7 @@ Method Summary
-propagateIfPossible(@Nullable Throwable throwable,
+propagateIfPossible(@Nullable Throwable throwable,
Class<X1> declaredType1,
Class<X2> declaredType2)
@@ -265,7 +265,7 @@ throwIfInstanceOf
propagateIfInstanceOf
@Deprecated
@GwtIncompatible
-public static <X extends Throwable> void propagateIfInstanceOf(@Nullable Throwable throwable,
+public static <X extends Throwable> void propagateIfInstanceOf(@Nullable Throwable throwable,
Class<X> declaredType)
throws X
Deprecated.
@@ -322,7 +322,7 @@ throwIfUnchecked
propagateIfPossible
+public static void propagateIfPossible(@Nullable Throwable throwable)
Deprecated.
Use throwIfUnchecked(java.lang.Throwable)
, which has the same behavior but rejects
null
.
@@ -335,7 +335,7 @@ propagateIfPossible
propagateIfPossible
@Deprecated
@GwtIncompatible
-public static <X extends Throwable> void propagateIfPossible(@Nullable Throwable throwable,
+public static <X extends Throwable> void propagateIfPossible(@Nullable Throwable throwable,
Class<X> declaredType)
throws X
Deprecated.
@@ -361,7 +361,7 @@ propagateIfPossible
@GwtIncompatible
public static <X1 extends Throwable,
X2 extends Throwable>
-void propagateIfPossible(@Nullable Throwable throwable,
+void propagateIfPossible(@Nullable Throwable throwable,
Class<X1> declaredType1,
Class<X2> declaredType2)
throws X1,
@@ -466,7 +466,7 @@ getCausalChain
getCauseAs
@GwtIncompatible
-public static <X extends Throwable> @Nullable X getCauseAs(Throwable throwable,
+public static <X extends Throwable> @Nullable X getCauseAs(Throwable throwable,
Class<X> expectedCauseType)
Returns throwable
's cause, cast to expectedCauseType
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/Verify.html b/releases/snapshot-android/api/docs/com/google/common/base/Verify.html
index 76ac4960c79a..8c6454daeffe 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/Verify.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/Verify.html
@@ -217,7 +217,7 @@ Method Summary
+ @Nullable Object p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -261,7 +261,7 @@ Method Summary
+ @Nullable Object p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -305,7 +305,7 @@ Method Summary
+ @Nullable Object p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -313,7 +313,7 @@ Method Summary
static void
+ @Nullable Object p1)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -321,7 +321,7 @@ Method Summary
static void
verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object @Nullable ... errorMessageArgs)
+ @Nullable Object @Nullable ... errorMessageArgs)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -329,7 +329,7 @@ Method Summary
static void
verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
char p2)
Ensures that expression
is true
, throwing a VerifyException
with a
@@ -338,7 +338,7 @@ Method Summary
static void
verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
int p2)
Ensures that expression
is true
, throwing a VerifyException
with a
@@ -347,7 +347,7 @@ Method Summary
static void
verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
long p2)
Ensures that expression
is true
, throwing a VerifyException
with a
@@ -356,8 +356,8 @@ Method Summary
static void
verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2)
+ @Nullable Object p1,
+ @Nullable Object p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -365,9 +365,9 @@ Method Summary
static void
verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -375,24 +375,24 @@ Method Summary
static void
verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3,
- @Nullable Object p4)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3,
+ @Nullable Object p4)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
static <T> T
-verifyNotNull(@Nullable T reference)
+verifyNotNull(@Nullable T reference)
Ensures that reference
is non-null, throwing a VerifyException
with a default
message otherwise.
static <T> T
-verifyNotNull(@Nullable T reference,
+verifyNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object @Nullable ... errorMessageArgs)
+ @Nullable Object @Nullable ... errorMessageArgs)
Ensures that reference
is non-null, throwing a VerifyException
with a custom
message otherwise.
@@ -437,7 +437,7 @@ verify
verify
public static void verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object @Nullable ... errorMessageArgs)
+ @Nullable Object @Nullable ... errorMessageArgs)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -581,7 +581,7 @@ verify
verify
public static void verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
char p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -649,7 +649,7 @@ verify
verify
public static void verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
int p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -717,7 +717,7 @@ verify
verify
public static void verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
+ @Nullable Object p1,
long p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -735,7 +735,7 @@ verify
public static void verify(boolean expression,
String errorMessageTemplate,
char p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -752,7 +752,7 @@ verify
public static void verify(boolean expression,
String errorMessageTemplate,
int p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -769,7 +769,7 @@ verify
public static void verify(boolean expression,
String errorMessageTemplate,
long p1,
- @Nullable Object p2)
+ @Nullable Object p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -785,8 +785,8 @@ verify
verify
public static void verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2)
+ @Nullable Object p1,
+ @Nullable Object p2)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -802,9 +802,9 @@ verify
verify
public static void verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -820,10 +820,10 @@ verify
verify
public static void verify(boolean expression,
String errorMessageTemplate,
- @Nullable Object p1,
- @Nullable Object p2,
- @Nullable Object p3,
- @Nullable Object p4)
+ @Nullable Object p1,
+ @Nullable Object p2,
+ @Nullable Object p3,
+ @Nullable Object p4)
Ensures that expression
is true
, throwing a VerifyException
with a
custom message otherwise.
@@ -838,7 +838,7 @@ verify
verifyNotNull
+public static <T> T verifyNotNull(@Nullable T reference)
Ensures that reference
is non-null, throwing a VerifyException
with a default
message otherwise.
@@ -859,9 +859,9 @@ verifyNotNull
verifyNotNull
@CanIgnoreReturnValue
-public static <T> T verifyNotNull(@Nullable T reference,
+public static <T> T verifyNotNull(@Nullable T reference,
String errorMessageTemplate,
- @Nullable Object @Nullable ... errorMessageArgs)
+ @Nullable Object @Nullable ... errorMessageArgs)
Ensures that reference
is non-null, throwing a VerifyException
with a custom
message otherwise.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/VerifyException.html b/releases/snapshot-android/api/docs/com/google/common/base/VerifyException.html
index 3cac46b26dc4..9e84607aa80a 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/VerifyException.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/VerifyException.html
@@ -131,17 +131,17 @@ Constructor Summary
Constructs a VerifyException
with no message.
-VerifyException(@Nullable String message)
+VerifyException(@Nullable String message)
Constructs a VerifyException
with the message message
.
-VerifyException(@Nullable String message,
- @Nullable Throwable cause)
+VerifyException(@Nullable String message,
+ @Nullable Throwable cause)
Constructs a VerifyException
with the message message
and the cause
cause
.
-VerifyException(@Nullable Throwable cause)
+VerifyException(@Nullable Throwable cause)
Constructs a VerifyException
with the cause cause
and a message that is
null
if cause
is null, and cause.toString()
otherwise.
@@ -180,14 +180,14 @@ VerifyException
-
VerifyException
-
+
Constructs a VerifyException
with the message message
.
-
VerifyException
-
+
Constructs a VerifyException
with the cause cause
and a message that is
null
if cause
is null, and cause.toString()
otherwise.
@@ -199,8 +199,8 @@ VerifyException
-
VerifyException
-
+
Constructs a VerifyException
with the message message
and the cause
cause
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Equivalence.Wrapper.html b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Equivalence.Wrapper.html
index edee384323ab..661bb17c7bf8 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Equivalence.Wrapper.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Equivalence.Wrapper.html
@@ -70,7 +70,7 @@ Uses of Modifier and Type
Method
Description
-final <S extends @Nullable T>
Equivalence.Wrapper<S>
+final <S extends @Nullable T>
Equivalence.Wrapper<S>
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,
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Equivalence.html b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Equivalence.html
index 5ad338ce6c3e..48d7a22e5575 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Equivalence.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Equivalence.html
@@ -85,12 +85,12 @@ Uses of Returns an equivalence that uses ==
to compare values and System.identityHashCode(Object)
to compute the hash code.
final <F> Equivalence<F>
-Equivalence.onResultOf(Function<? super F,? extends @Nullable T> function)
+Equivalence.onResultOf(Function<? super F,? extends @Nullable T> function)
Returns a new equivalence relation for F
which evaluates equivalence by first applying
function
to the argument, then evaluating using this
.
-final <S extends @Nullable T>
Equivalence<Iterable<S>>
+final <S extends @Nullable T>
Equivalence<Iterable<S>>
Equivalence.pairwise()
Returns an equivalence over iterables based on the equivalence of their elements.
@@ -106,11 +106,11 @@ Uses of Modifier and Type
Method
Description
-static <K extends @Nullable Object,
-V extends @Nullable Object>
MapDifference<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
MapDifference<K,V>
Maps.difference(Map<? extends K,? extends V> left,
Map<? extends K,? extends V> right,
- Equivalence<? super @NonNull V> valueEquivalence)
+ Equivalence<? super @NonNull V> valueEquivalence)
Computes the difference between two maps.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/class-use/FinalizableReferenceQueue.html b/releases/snapshot-android/api/docs/com/google/common/base/class-use/FinalizableReferenceQueue.html
index 4a71532d7d9d..02e6f007efdf 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/class-use/FinalizableReferenceQueue.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/class-use/FinalizableReferenceQueue.html
@@ -71,19 +71,19 @@ Uses of Constructor
Description
protected
-FinalizablePhantomReference(@Nullable T referent,
+FinalizablePhantomReference(@Nullable T referent,
FinalizableReferenceQueue queue)
Constructs a new finalizable phantom reference.
protected
-FinalizableSoftReference(@Nullable T referent,
+FinalizableSoftReference(@Nullable T referent,
FinalizableReferenceQueue queue)
Constructs a new finalizable soft reference.
protected
-FinalizableWeakReference(@Nullable T referent,
+FinalizableWeakReference(@Nullable T referent,
FinalizableReferenceQueue queue)
Constructs a new finalizable weak reference.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Function.html b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Function.html
index fe7b315612eb..b222a12c046f 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Function.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Function.html
@@ -99,49 +99,49 @@ Uses of Modifier and Type
Method
Description
-static <A extends @Nullable Object,
-B extends @Nullable Object,
-C extends @Nullable Object>
Function<A,C>
+static <A extends @Nullable Object,
+B extends @Nullable Object,
+C extends @Nullable Object>
Function<A,C>
Returns the composition of two functions.
-
+
Functions.constant(E value)
Returns a function that ignores its input and always returns value
.
-
+
Returns a function which performs a map lookup with a default value.
-
+
Returns a function which performs a map lookup.
-
+
Functions.forPredicate(Predicate<T> predicate)
Creates a function that returns the same boolean output as the given predicate for all inputs.
-
+
Functions.forSupplier(Supplier<T> supplier)
Returns a function that ignores its input and returns the result of supplier.get()
.
-
+
Functions.identity()
Returns the identity function.
-
+
Suppliers.supplierFunction()
Returns a function that accepts a supplier and returns the result of invoking Supplier.get()
on that supplier.
@@ -158,23 +158,23 @@ Uses of Modifier and Type
Method
Description
-static <A extends @Nullable Object,
-B extends @Nullable Object,
-C extends @Nullable Object>
Function<A,C>
+static <A extends @Nullable Object,
+B extends @Nullable Object,
+C extends @Nullable Object>
Function<A,C>
Returns the composition of two functions.
-
+
Returns the composition of a function and a predicate.
-
+
@@ -188,7 +188,7 @@ Uses of Returns a converter based on separate forward and backward functions.
final <F> Equivalence<F>
-Equivalence.onResultOf(Function<? super F,? extends @Nullable T> function)
+Equivalence.onResultOf(Function<? super F,? extends @Nullable T> function)
Returns a new equivalence relation for F
which evaluates equivalence by first applying
function
to the argument, then evaluating using this
.
@@ -273,31 +273,31 @@ Uses of Modifier and Type
Method
Description
-static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
Maps.asMap(NavigableSet<K> set,
Function<? super K,V> function)
Returns a view of the navigable set as a map, mapping keys from the set according to the
specified function.
-
+
Returns a live Map
view whose keys are the contents of set
and whose values are
computed on demand using function
.
-
+
Returns a view of the sorted set as a map, mapping keys from the set according to the specified
function.
-final <K> ImmutableListMultimap<K,@NonNull E>
+final <K> ImmutableListMultimap<K,@NonNull E>
Creates an index ImmutableListMultimap
that contains the results of applying a
@@ -319,13 +319,13 @@ Uses of Creates an index ImmutableListMultimap
that contains the results of applying a
specified function to each item in an Iterator
of values.
-
+
Ordering.onResultOf(Function<F,? extends T> function)
Returns a new ordering on F
which orders elements by first applying a function to them,
then comparing those results using this
.
-final <V> ImmutableMap<@NonNull E,V>
+final <V> ImmutableMap<@NonNull E,V>
Returns an immutable map whose keys are the distinct elements of this FluentIterable
@@ -347,98 +347,98 @@ Uses of Returns an immutable map whose keys are the distinct elements of keys
and whose value
for each key was computed by valueFunction
.
-static <F extends @Nullable Object,
-T extends @Nullable Object>
Collection<T>
+static <F extends @Nullable Object,
+T extends @Nullable Object>
Collection<T>
Collections2.transform(Collection<F> fromCollection,
Function<? super F,T> function)
Returns a collection that applies function
to each element of fromCollection
.
-final <T extends @Nullable Object>
FluentIterable<T>
+final <T extends @Nullable Object>
FluentIterable<T>
Returns a fluent iterable that applies function
to each element of this fluent
iterable.
-
+
Returns a view containing the result of applying function
to each element of
fromIterable
.
-
+
Returns a view containing the result of applying function
to each element of
fromIterator
.
-
+
Returns a list that applies function
to each element of fromList
.
-<T extends @Nullable Object>
FluentIterable<T>
+<T extends @Nullable Object>
FluentIterable<T>
FluentIterable.transformAndConcat(Function<? super E,? extends Iterable<? extends T>> function)
Applies function
to each element of this fluent iterable and returns a fluent iterable
with the concatenated combination of results.
-static <K extends @Nullable Object,
-V1 extends @Nullable Object,
-V2 extends @Nullable Object>
Map<K,V2>
+static <K extends @Nullable Object,
+V1 extends @Nullable Object,
+V2 extends @Nullable Object>
Map<K,V2>
Maps.transformValues(Map<K,V1> fromMap,
Function<? super V1,V2> function)
Returns a view of a map where each value is transformed by a function.
-static <K extends @Nullable Object,
-V1 extends @Nullable Object,
-V2 extends @Nullable Object>
NavigableMap<K,V2>
+static <K extends @Nullable Object,
+V1 extends @Nullable Object,
+V2 extends @Nullable Object>
NavigableMap<K,V2>
Maps.transformValues(NavigableMap<K,V1> fromMap,
Function<? super V1,V2> function)
Returns a view of a navigable map where each value is transformed by a function.
-static <K extends @Nullable Object,
-V1 extends @Nullable Object,
-V2 extends @Nullable Object>
SortedMap<K,V2>
+static <K extends @Nullable Object,
+V1 extends @Nullable Object,
+V2 extends @Nullable Object>
SortedMap<K,V2>
Maps.transformValues(SortedMap<K,V1> fromMap,
Function<? super V1,V2> function)
Returns a view of a sorted map where each value is transformed by a function.
-static <K extends @Nullable Object,
-V1 extends @Nullable Object,
-V2 extends @Nullable Object>
ListMultimap<K,V2>
+static <K extends @Nullable Object,
+V1 extends @Nullable Object,
+V2 extends @Nullable Object>
ListMultimap<K,V2>
Multimaps.transformValues(ListMultimap<K,V1> fromMultimap,
Function<? super V1,V2> function)
Returns a view of a ListMultimap
where each value is transformed by a function.
-static <K extends @Nullable Object,
-V1 extends @Nullable Object,
-V2 extends @Nullable Object>
Multimap<K,V2>
+static <K extends @Nullable Object,
+V1 extends @Nullable Object,
+V2 extends @Nullable Object>
Multimap<K,V2>
Multimaps.transformValues(Multimap<K,V1> fromMultimap,
Function<? super V1,V2> function)
Returns a view of a multimap where each value is transformed by a function.
-static <R extends @Nullable Object,
-C extends @Nullable Object,
-V1 extends @Nullable Object,
-V2 extends @Nullable Object>
Table<R,C,V2>
+static <R extends @Nullable Object,
+C extends @Nullable Object,
+V1 extends @Nullable Object,
+V2 extends @Nullable Object>
Table<R,C,V2>
Tables.transformValues(Table<R,C,V1> fromTable,
Function<? super V1,V2> function)
Returns a view of a table where each value is transformed by a function.
-final <K> ImmutableMap<K,@NonNull E>
+final <K> ImmutableMap<K,@NonNull E>
FluentIterable.uniqueIndex(Function<? super E,K> keyFunction)
Returns a map with the contents of this FluentIterable
as its values
, indexed
@@ -501,7 +501,7 @@ Uses of static <V extends @Nullable Object,
+static <V extends @Nullable Object,
X extends Throwable>
ListenableFuture<V>
Futures.catching(ListenableFuture<? extends V> input,
Class<X> exceptionType,
@@ -512,22 +512,22 @@ Uses of static <I extends @Nullable Object,
-O extends @Nullable Object>
Future<O>
+
Futures.lazyTransform(Future<I> input,
Function<? super I,? extends O> function)
Like Futures.transform(ListenableFuture, Function, Executor)
except that the transformation
function
is invoked on each call to get()
on the returned future.
-final <T extends @Nullable Object>
FluentFuture<T>
+final <T extends @Nullable Object>
FluentFuture<T>
Returns a new Future
whose result is derived from the result of this Future
.
-static <I extends @Nullable Object,
-O extends @Nullable Object>
ListenableFuture<O>
+static <I extends @Nullable Object,
+O extends @Nullable Object>
ListenableFuture<O>
Futures.transform(ListenableFuture<I> input,
Function<? super I,? extends O> function,
Executor executor)
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/class-use/MoreObjects.ToStringHelper.html b/releases/snapshot-android/api/docs/com/google/common/base/class-use/MoreObjects.ToStringHelper.html
index 952595e4bcad..3ea97fdd8265 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/class-use/MoreObjects.ToStringHelper.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/class-use/MoreObjects.ToStringHelper.html
@@ -108,7 +108,7 @@ Uses of MoreObjects.ToStringHelper
+ @Nullable Object value)
Adds a name/value pair to the formatted output in name=value
format.
@@ -143,7 +143,7 @@ Uses of Adds an unnamed value to the formatted output.
-
+
Adds an unnamed value to the formatted output.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Optional.html b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Optional.html
index 97a5fd0e2ff0..707e228f742e 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Optional.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Optional.html
@@ -88,14 +88,14 @@ Uses of O
Returns an Optional
instance with no contained reference.
-static <T> @Nullable Optional<T>
-Optional.fromJavaUtil(@Nullable Optional<T> javaUtilOptional)
+
+Optional.fromJavaUtil(@Nullable Optional<T> javaUtilOptional)
Returns the equivalent com.google.common.base.Optional
value to the given
java.util.Optional
, or null
if the argument is null.
static <T> Optional<T>
-Optional.fromNullable(@Nullable T nullableReference)
+Optional.fromNullable(@Nullable T nullableReference)
If nullableReference
is non-null, returns an Optional
instance containing that
reference; otherwise returns absent()
.
@@ -133,8 +133,8 @@ Uses of O
Returns this Optional
if it has a value present; secondChoice
otherwise.
-static <T> @Nullable Optional<T>
-Optional.toJavaUtil(@Nullable Optional<T> googleOptional)
+
+Optional.toJavaUtil(@Nullable Optional<T> googleOptional)
Returns the equivalent java.util.Optional
value to the given
com.google.common.base.Optional
, or null
if the argument is null.
@@ -162,18 +162,18 @@ Uses of O
Modifier and Type
Method
Description
-
+
FluentIterable.first()
Returns an Optional
containing the first element in this fluent iterable.
-
+
FluentIterable.firstMatch(Predicate<? super E> predicate)
Returns an Optional
containing the first element in this fluent iterable that satisfies
the given predicate, if such an element exists.
-
+
FluentIterable.last()
Returns an Optional
containing the last element in this fluent iterable.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Predicate.html b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Predicate.html
index 3b98e3ef9558..6db7246f8ae0 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Predicate.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Predicate.html
@@ -95,37 +95,37 @@ Uses of Modifier and Type
Method
Description
-
+
Predicates.alwaysFalse()
Returns a predicate that always evaluates to false
.
-
+
Predicates.alwaysTrue()
Returns a predicate that always evaluates to true
.
-
+
Returns a predicate that evaluates to true
if each of its components evaluates to
true
.
-
+
Returns a predicate that evaluates to true
if both of its components evaluate to
true
.
-
+
Returns a predicate that evaluates to true
if each of its components evaluates to
true
.
-
+
-
+
Predicates.equalTo(T target)
Returns a predicate that evaluates to true
if the object being tested equals()
the given target or both are null.
-
-Equivalence.equivalentTo(@Nullable T target)
+
+Equivalence.equivalentTo(@Nullable T target)
Returns a predicate that evaluates to true if and only if the input is equivalent to
target
according to this equivalence relation.
-
+
Predicates.in(Collection<? extends T> target)
Returns a predicate that evaluates to true
if the object reference being tested is a
member of the given collection.
-
+
Predicates.instanceOf(Class<?> clazz)
Returns a predicate that evaluates to true
if the object being tested is an instance of
the given class.
-
+
Predicates.isNull()
Returns a predicate that evaluates to true
if the object reference being tested is
null.
-
+
Returns a predicate that evaluates to true
if the given predicate evaluates to
false
.
-
+
Predicates.notNull()
Returns a predicate that evaluates to true
if the object reference being tested is not
null.
-
+
Returns a predicate that evaluates to true
if any one of its components evaluates to
true
.
-
+
Returns a predicate that evaluates to true
if either of its components evaluates to
true
.
-
+
Returns a predicate that evaluates to true
if any one of its components evaluates to
@@ -216,21 +216,21 @@ Uses of Modifier and Type
Method
Description
-
+
Returns a predicate that evaluates to true
if each of its components evaluates to
true
.
-
+
Returns a predicate that evaluates to true
if both of its components evaluate to
true
.
-
+
@@ -242,24 +242,24 @@ Uses of Returns a matcher with identical behavior to the given Character
-based predicate, but
which operates on primitive char
instances instead.
-
+
Functions.forPredicate(Predicate<T> predicate)
Creates a function that returns the same boolean output as the given predicate for all inputs.
-
+
Returns a predicate that evaluates to true
if the given predicate evaluates to
false
.
-
+
Returns a predicate that evaluates to true
if any one of its components evaluates to
true
.
-
+
@@ -272,13 +272,13 @@ Uses of Modifier and Type
Method
Description
-
+
Returns a predicate that evaluates to true
if each of its components evaluates to
true
.
-
+
Returns a predicate that evaluates to true
if any one of its components evaluates to
@@ -307,13 +307,13 @@ Uses of Modifier and Type
Method
Description
-static <T extends @Nullable Object>
boolean
+
Returns true
if every element in iterable
satisfies the predicate.
-static <T extends @Nullable Object>
boolean
+
@@ -325,13 +325,13 @@ Uses of
Returns true
if every element in this fluent iterable satisfies the predicate.
-static <T extends @Nullable Object>
boolean
+
Returns true
if any element in iterable
satisfies the predicate.
-static <T extends @Nullable Object>
boolean
+
@@ -343,7 +343,7 @@ Uses of
Returns true
if any element in this fluent iterable satisfies the predicate.
-static <E extends @Nullable Object>
Collection<E>
+static <E extends @Nullable Object>
Collection<E>
Collections2.filter(Collection<E> unfiltered,
Predicate<? super E> predicate)
@@ -354,242 +354,242 @@ Uses of
Returns the elements from this fluent iterable that satisfy a predicate.
-
+
Returns a view of unfiltered
containing all elements that satisfy the input predicate
retainIfTrue
.
-static <T extends @Nullable Object>
UnmodifiableIterator<T>
+static <T extends @Nullable Object>
UnmodifiableIterator<T>
Returns a view of unfiltered
containing all elements that satisfy the input predicate
retainIfTrue
.
-
+
Returns a view of the elements of unfiltered
that satisfy a predicate.
-static <E extends @Nullable Object>
NavigableSet<E>
+static <E extends @Nullable Object>
NavigableSet<E>
Sets.filter(NavigableSet<E> unfiltered,
Predicate<? super E> predicate)
Returns the elements of a NavigableSet
, unfiltered
, that satisfy a predicate.
-
+
Returns the elements of unfiltered
that satisfy a predicate.
-
+
Returns the elements of a SortedSet
, unfiltered
, that satisfy a predicate.
-
+
Maps.filterEntries(BiMap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a bimap containing the mappings in unfiltered
that satisfy a predicate.
-
+
Maps.filterEntries(Map<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a map containing the mappings in unfiltered
that satisfy a predicate.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
Maps.filterEntries(NavigableMap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a sorted map containing the mappings in unfiltered
that satisfy a predicate.
-
+
Maps.filterEntries(SortedMap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a sorted map containing the mappings in unfiltered
that satisfy a predicate.
-
+
Multimaps.filterEntries(Multimap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a multimap containing the mappings in unfiltered
that satisfy a predicate.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
SetMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
SetMultimap<K,V>
Multimaps.filterEntries(SetMultimap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a multimap containing the mappings in unfiltered
that satisfy a predicate.
-
+
Maps.filterKeys(BiMap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a bimap containing the mappings in unfiltered
whose keys satisfy a predicate.
-
+
Maps.filterKeys(Map<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a map containing the mappings in unfiltered
whose keys satisfy a predicate.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
Maps.filterKeys(NavigableMap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a navigable map containing the mappings in unfiltered
whose keys satisfy a
predicate.
-
+
Maps.filterKeys(SortedMap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a sorted map containing the mappings in unfiltered
whose keys satisfy a
predicate.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
ListMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
ListMultimap<K,V>
Multimaps.filterKeys(ListMultimap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in unfiltered
whose keys satisfy a
predicate.
-
+
Multimaps.filterKeys(Multimap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in unfiltered
whose keys satisfy a
predicate.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
SetMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
SetMultimap<K,V>
Multimaps.filterKeys(SetMultimap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a multimap containing the mappings in unfiltered
whose keys satisfy a
predicate.
-
+
Maps.filterValues(BiMap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a bimap containing the mappings in unfiltered
whose values satisfy a predicate.
-
+
Maps.filterValues(Map<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a map containing the mappings in unfiltered
whose values satisfy a predicate.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
NavigableMap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
NavigableMap<K,V>
Maps.filterValues(NavigableMap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a navigable map containing the mappings in unfiltered
whose values satisfy a
predicate.
-
+
Maps.filterValues(SortedMap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a sorted map containing the mappings in unfiltered
whose values satisfy a
predicate.
-
+
Multimaps.filterValues(Multimap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a multimap containing the mappings in unfiltered
whose values satisfy a
predicate.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
SetMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
SetMultimap<K,V>
Multimaps.filterValues(SetMultimap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a multimap containing the mappings in unfiltered
whose values satisfy a
predicate.
-static <T extends @Nullable Object>
@Nullable T
+
Iterables.find(Iterable<? extends T> iterable,
Predicate<? super T> predicate,
- @Nullable T defaultValue)
+ @Nullable T defaultValue)
Returns the first element in iterable
that satisfies the given predicate, or
defaultValue
if none found.
-static <T extends @Nullable Object>
T
+
Returns the first element in iterable
that satisfies the given predicate; use this
method only when such an element is known to exist.
-static <T extends @Nullable Object>
@Nullable T
+
+ @Nullable T defaultValue)
Returns the first element in iterator
that satisfies the given predicate.
-static <T extends @Nullable Object>
T
+
Returns the first element in iterator
that satisfies the given predicate; use this
method only when such an element is known to exist.
-
+
FluentIterable.firstMatch(Predicate<? super E> predicate)
Returns an Optional
containing the first element in this fluent iterable that satisfies
the given predicate, if such an element exists.
-static <T extends @Nullable Object>
int
+
Returns the index in iterable
of the first element that satisfies the provided
predicate
, or -1
if the Iterable has no such elements.
-static <T extends @Nullable Object>
int
+
Returns the index in iterator
of the first element that satisfies the provided
predicate
, or -1
if the Iterator has no such elements.
-static <T extends @Nullable Object>
boolean
+
Removes, from an iterable, every element that satisfies the provided predicate.
-static <T extends @Nullable Object>
boolean
+
@@ -621,7 +621,7 @@ Uses of Class
Description
final class
-BloomFilter<T extends @Nullable Object>
+BloomFilter<T extends @Nullable Object>
A Bloom filter for instances of T
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Supplier.html b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Supplier.html
index 2353d3282501..ea729c3da290 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/class-use/Supplier.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/class-use/Supplier.html
@@ -78,20 +78,20 @@ Uses of Modifier and Type
Method
Description
-
+
Returns a new supplier which is the composition of the provided function and supplier.
-
+
Returns a supplier which caches the instance retrieved during the first call to get()
and returns that value on subsequent calls to get()
.
-
+
Suppliers.memoizeWithExpiration(Supplier<T> delegate,
long duration,
TimeUnit unit)
@@ -99,19 +99,19 @@ Uses of Returns a supplier that caches the instance supplied by the delegate and removes the cached
value after the specified time has passed.
-
+
Suppliers.memoizeWithExpiration(Supplier<T> delegate,
Duration duration)
Returns a supplier that caches the instance supplied by the delegate and removes the cached
value after the specified time has passed.
-
+
Suppliers.ofInstance(T instance)
Returns a supplier that always supplies instance
.
-
+
Suppliers.synchronizedSupplier(Supplier<T> delegate)
Returns a supplier whose get()
method synchronizes on delegate
before calling
@@ -123,7 +123,7 @@ Uses of Modifier and Type
Method
Description
-
+
Suppliers.supplierFunction()
Returns a function that accepts a supplier and returns the result of invoking get()
on that supplier.
@@ -134,26 +134,26 @@ Uses of Modifier and Type
Method
Description
-
+
Returns a new supplier which is the composition of the provided function and supplier.
-
+
Functions.forSupplier(Supplier<T> supplier)
Returns a function that ignores its input and returns the result of supplier.get()
.
-
+
Returns a supplier which caches the instance retrieved during the first call to get()
and returns that value on subsequent calls to get()
.
-
+
Suppliers.memoizeWithExpiration(Supplier<T> delegate,
long duration,
TimeUnit unit)
@@ -161,7 +161,7 @@ Uses of Returns a supplier that caches the instance supplied by the delegate and removes the cached
value after the specified time has passed.
-
+
Suppliers.memoizeWithExpiration(Supplier<T> delegate,
Duration duration)
@@ -173,7 +173,7 @@ Uses of
Returns the contained instance if it is present; supplier.get()
otherwise.
-
+
Suppliers.synchronizedSupplier(Supplier<T> delegate)
Returns a supplier whose get()
method synchronizes on delegate
before calling
@@ -214,30 +214,30 @@ Uses of
Creates a table that uses the specified backing map and factory.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
ListMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
ListMultimap<K,V>
Multimaps.newListMultimap(Map<K,Collection<V>> map,
Supplier<? extends List<V>> factory)
Creates a new ListMultimap
that uses the provided map and factory.
-
+
Multimaps.newMultimap(Map<K,Collection<V>> map,
Supplier<? extends Collection<V>> factory)
Creates a new Multimap
backed by map
, whose internal value collections are
generated by factory
.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
SetMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
SetMultimap<K,V>
Multimaps.newSetMultimap(Map<K,Collection<V>> map,
Supplier<? extends Set<V>> factory)
Creates a new SetMultimap
that uses the provided map and factory.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
SortedSetMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
SortedSetMultimap<K,V>
Multimaps.newSortedSetMultimap(Map<K,Collection<V>> map,
Supplier<? extends SortedSet<V>> factory)
diff --git a/releases/snapshot-android/api/docs/com/google/common/base/package-summary.html b/releases/snapshot-android/api/docs/com/google/common/base/package-summary.html
index 16743f340f4f..a429b1d50e1d 100644
--- a/releases/snapshot-android/api/docs/com/google/common/base/package-summary.html
+++ b/releases/snapshot-android/api/docs/com/google/common/base/package-summary.html
@@ -70,7 +70,7 @@ Package com.google.comm
@CheckReturnValue
-@NullMarked
+@NullMarked
package com.google.common.base
Basic utility libraries and interfaces.
@@ -162,7 +162,7 @@ The rest
A strategy for determining whether two instances are considered equivalent, and for computing
hash codes in a manner consistent with that equivalence.
-Equivalence.Wrapper<T extends @Nullable Object>
+
Wraps an object so that Equivalence.Wrapper.equals(Object)
and Equivalence.Wrapper.hashCode()
delegate to an Equivalence
.
@@ -190,7 +190,7 @@ The rest
Weak reference with a finalizeReferent()
method which a background thread invokes after
the garbage collector reclaims the referent.
-
+
Determines an output value based on an input value; a pre-Java-8 version of java.util.function.Function
.
@@ -230,7 +230,7 @@ The rest
Static convenience methods that help a method or constructor check whether it was invoked
correctly (that is, whether its preconditions were met).
-
+
Determines a true or false value for a given input; a pre-Java-8 version of java.util.function.Predicate
.
@@ -260,7 +260,7 @@ The rest
Static utility methods pertaining to String
or CharSequence
instances.
-
+
A class that can supply objects of a single type; a pre-Java-8 version of java.util.function.Supplier
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/cache/Cache.html b/releases/snapshot-android/api/docs/com/google/common/cache/Cache.html
index 9cb2b2e1d66c..756a1ccbd86a 100644
--- a/releases/snapshot-android/api/docs/com/google/common/cache/Cache.html
+++ b/releases/snapshot-android/api/docs/com/google/common/cache/Cache.html
@@ -151,7 +151,7 @@ Method Summary
Returns a map of the values associated with keys
in this cache.
-@Nullable V
+
getIfPresent(Object key)
Returns the value associated with key
in this cache, or null
if there is no
@@ -212,7 +212,7 @@ Method Details
getIfPresent
@CanIgnoreReturnValue
-@Nullable V getIfPresent(@CompatibleWith("K")
+@Nullable V getIfPresent(@CompatibleWith("K")
Object key)
Returns the value associated with key
in this cache, or null
if there is no
cached value for key
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/cache/CacheBuilderSpec.html b/releases/snapshot-android/api/docs/com/google/common/cache/CacheBuilderSpec.html
index 781b09d34d90..177c84d9ba77 100644
--- a/releases/snapshot-android/api/docs/com/google/common/cache/CacheBuilderSpec.html
+++ b/releases/snapshot-android/api/docs/com/google/common/cache/CacheBuilderSpec.html
@@ -161,7 +161,7 @@ Method Summary
Returns a CacheBuilderSpec that will prevent caching.
boolean
-
+
int
hashCode()
@@ -250,7 +250,7 @@ hashCode
-
equals
-
+
- Overrides:
equals
in class Object
diff --git a/releases/snapshot-android/api/docs/com/google/common/cache/CacheStats.html b/releases/snapshot-android/api/docs/com/google/common/cache/CacheStats.html
index 28ca6d554773..b8829c635e2c 100644
--- a/releases/snapshot-android/api/docs/com/google/common/cache/CacheStats.html
+++ b/releases/snapshot-android/api/docs/com/google/common/cache/CacheStats.html
@@ -165,7 +165,7 @@ Method Summary
Returns the average time spent loading new values.
boolean
-
+
long
@@ -453,7 +453,7 @@ hashCode
-
equals
-
+
- Overrides:
equals
in class Object
diff --git a/releases/snapshot-android/api/docs/com/google/common/cache/ForwardingCache.html b/releases/snapshot-android/api/docs/com/google/common/cache/ForwardingCache.html
index b2344e0041ca..211a53adb9ec 100644
--- a/releases/snapshot-android/api/docs/com/google/common/cache/ForwardingCache.html
+++ b/releases/snapshot-android/api/docs/com/google/common/cache/ForwardingCache.html
@@ -189,7 +189,7 @@ Method Summary
Returns a map of the values associated with keys
in this cache.
-@Nullable V
+
getIfPresent(Object key)
Returns the value associated with key
in this cache, or null
if there is no
@@ -285,7 +285,7 @@ delegate
-
getIfPresent
-
+
Description copied from interface: Cache
Returns the value associated with key
in this cache, or null
if there is no
cached value for key
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/cache/RemovalNotification.html b/releases/snapshot-android/api/docs/com/google/common/cache/RemovalNotification.html
index a070cb97fa32..5ca624c2f395 100644
--- a/releases/snapshot-android/api/docs/com/google/common/cache/RemovalNotification.html
+++ b/releases/snapshot-android/api/docs/com/google/common/cache/RemovalNotification.html
@@ -87,7 +87,7 @@
Class RemovalNotification<K,V>
java.lang.Object
-java.util.AbstractMap.SimpleImmutableEntry<@Nullable K,@Nullable V>
+java.util.AbstractMap.SimpleImmutableEntry<@Nullable K,@Nullable V>
com.google.common.cache.RemovalNotification<K,V>
@@ -99,7 +99,7 @@ Class RemovalNotification<
@GwtCompatible
public final class RemovalNotification<K,V>
-extends AbstractMap.SimpleImmutableEntry<@Nullable K,@Nullable V>
+extends AbstractMap.SimpleImmutableEntry<@Nullable K,@Nullable V>
A notification of the removal of a single entry. The key and/or value may be null if they were
already garbage collected.
@@ -134,8 +134,8 @@ Method Summary
Description
static <K,
V> RemovalNotification<K,V>
-create(@Nullable K key,
- @Nullable V value,
+create(@Nullable K key,
+ @Nullable V value,
RemovalCause cause)
Creates a new RemovalNotification
for the given key
/value
pair, with
@@ -176,8 +176,8 @@ Method Details
create
public static <K,
-V> RemovalNotification<K,V> create(@Nullable K key,
- @Nullable V value,
+V> RemovalNotification<K,V> create(@Nullable K key,
+ @Nullable V value,
RemovalCause cause)
Creates a new RemovalNotification
for the given key
/value
pair, with
the given cause
for the removal. The key
and/or value
may be
diff --git a/releases/snapshot-android/api/docs/com/google/common/cache/class-use/RemovalCause.html b/releases/snapshot-android/api/docs/com/google/common/cache/class-use/RemovalCause.html
index ef14215f2eb0..22c26c4ff487 100644
--- a/releases/snapshot-android/api/docs/com/google/common/cache/class-use/RemovalCause.html
+++ b/releases/snapshot-android/api/docs/com/google/common/cache/class-use/RemovalCause.html
@@ -94,8 +94,8 @@ Uses of Description
static <K,
V> RemovalNotification<K,V>
-RemovalNotification.create(@Nullable K key,
- @Nullable V value,
+RemovalNotification.create(@Nullable K key,
+ @Nullable V value,
RemovalCause cause)
Creates a new RemovalNotification
for the given key
/value
pair, with
diff --git a/releases/snapshot-android/api/docs/com/google/common/cache/class-use/RemovalNotification.html b/releases/snapshot-android/api/docs/com/google/common/cache/class-use/RemovalNotification.html
index 1ab3190db949..181c445e4ba4 100644
--- a/releases/snapshot-android/api/docs/com/google/common/cache/class-use/RemovalNotification.html
+++ b/releases/snapshot-android/api/docs/com/google/common/cache/class-use/RemovalNotification.html
@@ -72,8 +72,8 @@ Uses of Description
static <K,
V> RemovalNotification<K,V>
-RemovalNotification.create(@Nullable K key,
- @Nullable V value,
+RemovalNotification.create(@Nullable K key,
+ @Nullable V value,
RemovalCause cause)
Creates a new RemovalNotification
for the given key
/value
pair, with
diff --git a/releases/snapshot-android/api/docs/com/google/common/cache/package-summary.html b/releases/snapshot-android/api/docs/com/google/common/cache/package-summary.html
index 599ef8244f71..01ac06cb42e1 100644
--- a/releases/snapshot-android/api/docs/com/google/common/cache/package-summary.html
+++ b/releases/snapshot-android/api/docs/com/google/common/cache/package-summary.html
@@ -70,7 +70,7 @@ Package com.google.com
@CheckReturnValue
-@NullMarked
+@NullMarked
package com.google.common.cache
Discouraged (in favor of Caffeine) caching utilities.
diff --git a/releases/snapshot-android/api/docs/com/google/common/collect/AbstractIterator.html b/releases/snapshot-android/api/docs/com/google/common/collect/AbstractIterator.html
index 512c6d741b0e..1b957759c9eb 100644
--- a/releases/snapshot-android/api/docs/com/google/common/collect/AbstractIterator.html
+++ b/releases/snapshot-android/api/docs/com/google/common/collect/AbstractIterator.html
@@ -84,7 +84,7 @@
Package com.google.common.collect
-Class AbstractIterator<T extends @Nullable Object>
+Class AbstractIterator<T extends @Nullable Object>
java.lang.Object
com.google.common.collect.UnmodifiableIterator<T>
@@ -98,7 +98,7 @@ Class AbstractIterator<T ext
@GwtCompatible
-public abstract class AbstractIterator<T extends @Nullable Object>
+public abstract class AbstractIterator<T extends @Nullable Object>
extends UnmodifiableIterator<T>
This class provides a skeletal implementation of the Iterator
interface, to make this
interface easier to implement for certain types of data sources.
@@ -167,12 +167,12 @@ Method Summary
Modifier and Type
Method
Description
-protected abstract @Nullable T
+
Returns the next element.
-protected final @Nullable T
+
Implementations of computeNext()
must invoke this method when there are no
@@ -231,7 +231,7 @@ Method Details
-
computeNext
-
+
Returns the next element. Note: the implementation must call endOfData()
when
there are no elements left in the iteration. Failure to do so could result in an infinite loop.
@@ -262,7 +262,7 @@ computeNext
endOfData
+protected final @Nullable T endOfData()
Implementations of computeNext()
must invoke this method when there are no
elements left in the iteration.
diff --git a/releases/snapshot-android/api/docs/com/google/common/collect/AbstractSequentialIterator.html b/releases/snapshot-android/api/docs/com/google/common/collect/AbstractSequentialIterator.html
index 9a53723486d1..4bb4ca5936a6 100644
--- a/releases/snapshot-android/api/docs/com/google/common/collect/AbstractSequentialIterator.html
+++ b/releases/snapshot-android/api/docs/com/google/common/collect/AbstractSequentialIterator.html
@@ -133,7 +133,7 @@ Constructor Summary
Constructor
Description
protected
-AbstractSequentialIterator(@Nullable T firstOrNull)
+AbstractSequentialIterator(@Nullable T firstOrNull)
Creates a new iterator with the given first element, or, if firstOrNull
is null,
creates a new empty iterator.
@@ -152,7 +152,7 @@ Method Summary
Modifier and Type
Method
Description
-protected abstract @Nullable T
+
computeNext(T previous)
Returns the element that follows previous
, or returns null
if no elements
@@ -190,7 +190,7 @@ Constructor Details
-
AbstractSequentialIterator
-
+
Creates a new iterator with the given first element, or, if firstOrNull
is null,
creates a new empty iterator.
@@ -206,7 +206,7 @@ Method Details
-
computeNext
-
+
Returns the element that follows previous
, or returns null
if no elements
remain. This method is invoked during each call to next()
in order to compute the
result of a future call to next()
.
diff --git a/releases/snapshot-android/api/docs/com/google/common/collect/ArrayListMultimap.html b/releases/snapshot-android/api/docs/com/google/common/collect/ArrayListMultimap.html
index 08d5ec168b3f..a2e3ad04fd31 100644
--- a/releases/snapshot-android/api/docs/com/google/common/collect/ArrayListMultimap.html
+++ b/releases/snapshot-android/api/docs/com/google/common/collect/ArrayListMultimap.html
@@ -84,7 +84,7 @@
Package com.google.common.collect
-Class ArrayListMultimap<K extends @Nullable Object,V extends @Nullable Object>
+Class ArrayListMultimap<K extends @Nullable Object,V extends @Nullable Object>
java.lang.Object
com.google.common.collect.ArrayListMultimap<K,V>
@@ -97,7 +97,7 @@ Class ArrayListMultimap<K e
@GwtCompatible(serializable=true,
emulated=true)
-public final class ArrayListMultimap<K extends @Nullable Object,V extends @Nullable Object>
+public final class ArrayListMultimap<K extends @Nullable Object,V extends @Nullable Object>
extends Object
Implementation of Multimap
that uses an ArrayList
to store the values for a given
key. A HashMap
associates each key with an ArrayList
of values.
@@ -158,40 +158,40 @@ Method Summary
Removes all key-value pairs from the multimap, leaving it empty.
boolean
-containsEntry(@Nullable Object key,
- @Nullable Object value)
+containsEntry(@Nullable Object key,
+ @Nullable Object value)
Returns true
if this multimap contains at least one key-value pair with the key
key
and the value value
.
boolean
-containsKey(@Nullable Object key)
+containsKey(@Nullable Object key)
Returns true
if this multimap contains at least one key-value pair with the key
key
.
boolean
-containsValue(@Nullable Object value)
+containsValue(@Nullable Object value)
Returns true
if this multimap contains at least one key-value pair with the value
value
.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
ArrayListMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
ArrayListMultimap<K,V>
create()
Creates a new, empty ArrayListMultimap
with the default initial capacities.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
ArrayListMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
ArrayListMultimap<K,V>
create(int expectedKeys,
int expectedValuesPerKey)
Constructs an empty ArrayListMultimap
with enough capacity to hold the specified
numbers of keys and values without resizing.
-static <K extends @Nullable Object,
-V extends @Nullable Object>
ArrayListMultimap<K,V>
+static <K extends @Nullable Object,
+V extends @Nullable Object>
ArrayListMultimap<K,V>
Constructs an ArrayListMultimap
with the same mappings as the specified multimap.
@@ -203,7 +203,7 @@ Method Summary
instances.
boolean
-
+
Compares the specified object to this multimap for equality.
@@ -253,14 +253,14 @@ Method Summary
key
.
boolean
-
+
Removes a single key-value pair with the key key
and the value value
from this
multimap, if such exists.
-
+
Removes all values associated with the key key
.
@@ -317,8 +317,8 @@ Method Details
-
create
-public static <K extends @Nullable Object,
-V extends @Nullable Object>
+public static <K extends @Nullable Object,
+V extends @Nullable Object>
ArrayListMultimap<K,V> create()
Creates a new, empty ArrayListMultimap
with the default initial capacities.
@@ -330,8 +330,8 @@ create
-
create
-