Uses of Class
com.google.errorprone.annotations.CanIgnoreReturnValue
-
Packages that use CanIgnoreReturnValue Package Description com.google.common.base Basic utility libraries and interfaces.com.google.common.collect This package contains generic collection interfaces and implementations, and other utilities for working with collections.com.google.common.escape Interfaces, utilities, and simple implementations of escapers and encoders.com.google.common.graph An API for representing graph (node and edge) data.com.google.common.hash Hash functions and related structures.com.google.common.io This package contains utility methods and classes for working with Java I/O; for example input streams, output streams, readers, writers, and files.com.google.common.primitives Static utilities for working with the eight primitive types andvoid
, and value types for treating them as unsigned.com.google.common.reflect This package contains utilities to work with Java reflection.com.google.common.util.concurrent Concurrency utilities. -
-
Uses of CanIgnoreReturnValue in com.google.common.base
Methods in com.google.common.base with annotations of type CanIgnoreReturnValue Modifier and Type Method Description MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. add(java.lang.String name, boolean value)
Adds a name/value pair to the formatted output inname=value
format.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. add(java.lang.String name, char value)
Adds a name/value pair to the formatted output inname=value
format.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. add(java.lang.String name, double value)
Adds a name/value pair to the formatted output inname=value
format.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. add(java.lang.String name, float value)
Adds a name/value pair to the formatted output inname=value
format.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. add(java.lang.String name, int value)
Adds a name/value pair to the formatted output inname=value
format.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. add(java.lang.String name, long value)
Adds a name/value pair to the formatted output inname=value
format.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. add(java.lang.String name, @Nullable java.lang.Object value)
Adds a name/value pair to the formatted output inname=value
format.Objects.ToStringHelper
Objects.ToStringHelper. add(java.lang.String name, boolean value)
Deprecated.Adds a name/value pair to the formatted output inname=value
format.Objects.ToStringHelper
Objects.ToStringHelper. add(java.lang.String name, char value)
Deprecated.Adds a name/value pair to the formatted output inname=value
format.Objects.ToStringHelper
Objects.ToStringHelper. add(java.lang.String name, double value)
Deprecated.Adds a name/value pair to the formatted output inname=value
format.Objects.ToStringHelper
Objects.ToStringHelper. add(java.lang.String name, float value)
Deprecated.Adds a name/value pair to the formatted output inname=value
format.Objects.ToStringHelper
Objects.ToStringHelper. add(java.lang.String name, int value)
Deprecated.Adds a name/value pair to the formatted output inname=value
format.Objects.ToStringHelper
Objects.ToStringHelper. add(java.lang.String name, long value)
Deprecated.Adds a name/value pair to the formatted output inname=value
format.Objects.ToStringHelper
Objects.ToStringHelper. add(java.lang.String name, @Nullable java.lang.Object value)
Deprecated.Adds a name/value pair to the formatted output inname=value
format.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. addValue(boolean value)
Adds an unnamed value to the formatted output.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. addValue(char value)
Adds an unnamed value to the formatted output.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. addValue(double value)
Adds an unnamed value to the formatted output.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. addValue(float value)
Adds an unnamed value to the formatted output.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. addValue(int value)
Adds an unnamed value to the formatted output.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. addValue(long value)
Adds an unnamed value to the formatted output.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. addValue(@Nullable java.lang.Object value)
Adds an unnamed value to the formatted output.Objects.ToStringHelper
Objects.ToStringHelper. addValue(boolean value)
Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelper
Objects.ToStringHelper. addValue(char value)
Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelper
Objects.ToStringHelper. addValue(double value)
Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelper
Objects.ToStringHelper. addValue(float value)
Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelper
Objects.ToStringHelper. addValue(int value)
Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelper
Objects.ToStringHelper. addValue(long value)
Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelper
Objects.ToStringHelper. addValue(@Nullable java.lang.Object value)
Deprecated.Adds an unnamed value to the formatted output.<A extends java.lang.Appendable>
AJoiner. appendTo(A appendable, @Nullable java.lang.Object first, @Nullable java.lang.Object second, java.lang.Object... rest)
Appends toappendable
the string representation of each of the remaining arguments.<A extends java.lang.Appendable>
AJoiner. appendTo(A appendable, java.lang.Iterable<?> parts)
Appends the string representation of each ofparts
, using the previously configured separator between each, toappendable
.<A extends java.lang.Appendable>
AJoiner. appendTo(A appendable, java.lang.Object[] parts)
Appends the string representation of each ofparts
, using the previously configured separator between each, toappendable
.<A extends java.lang.Appendable>
AJoiner. appendTo(A appendable, java.util.Iterator<?> parts)
Appends the string representation of each ofparts
, using the previously configured separator between each, toappendable
.java.lang.StringBuilder
Joiner. appendTo(java.lang.StringBuilder builder, @Nullable java.lang.Object first, @Nullable java.lang.Object second, java.lang.Object... rest)
Appends tobuilder
the string representation of each of the remaining arguments.java.lang.StringBuilder
Joiner. appendTo(java.lang.StringBuilder builder, java.lang.Iterable<?> parts)
Appends the string representation of each ofparts
, using the previously configured separator between each, tobuilder
.java.lang.StringBuilder
Joiner. appendTo(java.lang.StringBuilder builder, java.lang.Object[] parts)
Appends the string representation of each ofparts
, using the previously configured separator between each, tobuilder
.java.lang.StringBuilder
Joiner. appendTo(java.lang.StringBuilder builder, java.util.Iterator<?> parts)
Appends the string representation of each ofparts
, using the previously configured separator between each, tobuilder
.<A extends java.lang.Appendable>
AJoiner.MapJoiner. appendTo(A appendable, java.lang.Iterable<? extends java.util.Map.Entry<?,?>> entries)
Appends the string representation of each entry inentries
, using the previously configured separator and key-value separator, toappendable
.<A extends java.lang.Appendable>
AJoiner.MapJoiner. appendTo(A appendable, java.util.Iterator<? extends java.util.Map.Entry<?,?>> parts)
Appends the string representation of each entry inentries
, using the previously configured separator and key-value separator, toappendable
.<A extends java.lang.Appendable>
AJoiner.MapJoiner. appendTo(A appendable, java.util.Map<?,?> map)
Appends the string representation of each entry ofmap
, using the previously configured separator and key-value separator, toappendable
.java.lang.StringBuilder
Joiner.MapJoiner. appendTo(java.lang.StringBuilder builder, java.lang.Iterable<? extends java.util.Map.Entry<?,?>> entries)
Appends the string representation of each entry inentries
, using the previously configured separator and key-value separator, tobuilder
.java.lang.StringBuilder
Joiner.MapJoiner. appendTo(java.lang.StringBuilder builder, java.util.Iterator<? extends java.util.Map.Entry<?,?>> entries)
Appends the string representation of each entry inentries
, using the previously configured separator and key-value separator, tobuilder
.java.lang.StringBuilder
Joiner.MapJoiner. appendTo(java.lang.StringBuilder builder, java.util.Map<?,?> map)
Appends the string representation of each entry ofmap
, using the previously configured separator and key-value separator, tobuilder
.@Nullable B
Converter. apply(@Nullable A a)
Deprecated.Provided to satisfy theFunction
interface; useConverter.convert(A)
instead.@Nullable T
Function. apply(@Nullable F input)
boolean
Predicate. apply(@Nullable T input)
Returns the result of applying this predicate toinput
(Java 8 users, see notes in the class documentation above).static int
Preconditions. checkElementIndex(int index, int size)
Ensures thatindex
specifies a valid element in an array, list or string of sizesize
.static int
Preconditions. checkElementIndex(int index, int size, @Nullable java.lang.String desc)
Ensures thatindex
specifies a valid element in an array, list or string of sizesize
.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T reference)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T reference, @Nullable java.lang.Object errorMessage)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, char p1)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, char p1, char p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, char p1, int p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, char p1, long p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, char p1, @Nullable java.lang.Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, int p1)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, int p1, char p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, int p1, int p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, int p1, long p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, int p1, @Nullable java.lang.Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, long p1)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, long p1, char p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, long p1, int p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, long p1, long p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, long p1, @Nullable java.lang.Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, @Nullable java.lang.Object p1)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T reference, @Nullable java.lang.String errorMessageTemplate, @Nullable java.lang.Object @Nullable ... errorMessageArgs)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, @Nullable java.lang.Object p1, char p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, @Nullable java.lang.Object p1, int p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, @Nullable java.lang.Object p1, long p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, @Nullable java.lang.Object p1, @Nullable java.lang.Object p2)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, @Nullable java.lang.Object p1, @Nullable java.lang.Object p2, @Nullable java.lang.Object p3)
Ensures that an object reference passed as a parameter to the calling method is not null.static <T extends @NonNull java.lang.Object>
TPreconditions. checkNotNull(T obj, @Nullable java.lang.String errorMessageTemplate, @Nullable java.lang.Object p1, @Nullable java.lang.Object p2, @Nullable java.lang.Object p3, @Nullable java.lang.Object p4)
Ensures that an object reference passed as a parameter to the calling method is not null.static int
Preconditions. checkPositionIndex(int index, int size)
Ensures thatindex
specifies a valid position in an array, list or string of sizesize
.static int
Preconditions. checkPositionIndex(int index, int size, @Nullable java.lang.String desc)
Ensures thatindex
specifies a valid position in an array, list or string of sizesize
.@Nullable B
Converter. convert(@Nullable A a)
Returns a representation ofa
as an instance of typeB
.java.lang.Iterable<B>
Converter. convertAll(java.lang.Iterable<? extends A> fromIterable)
Returns an iterable that appliesconvert
to each element offromIterable
.T
Supplier. get()
Retrieves an instance of the appropriate type.MoreObjects.ToStringHelper
MoreObjects.ToStringHelper. omitNullValues()
Configures theMoreObjects.ToStringHelper
soMoreObjects.ToStringHelper.toString()
will ignore properties with null value.Objects.ToStringHelper
Objects.ToStringHelper. omitNullValues()
Deprecated.Configures theObjects.ToStringHelper
soObjects.ToStringHelper.toString()
will ignore properties with null value.static java.lang.RuntimeException
Throwables. propagate(java.lang.Throwable throwable)
Deprecated.Usethrow e
orthrow new RuntimeException(e)
directly, or use a combination ofThrowables.throwIfUnchecked(java.lang.Throwable)
andthrow new RuntimeException(e)
.Stopwatch
Stopwatch. reset()
Sets the elapsed time for this stopwatch to zero, and places it in a stopped state.Converter<B,A>
Converter. reverse()
Returns the reversed view of this converter, which convertsthis.convert(a)
back to a value roughly equivalent toa
.Stopwatch
Stopwatch. start()
Starts the stopwatch.Stopwatch
Stopwatch. stop()
Stops the stopwatch.static <T> T
Verify. verifyNotNull(@Nullable T reference)
Ensures thatreference
is non-null, throwing aVerifyException
with a default message otherwise.static <T> T
Verify. verifyNotNull(@Nullable T reference, @Nullable java.lang.String errorMessageTemplate, @Nullable java.lang.Object @Nullable ... errorMessageArgs)
Ensures thatreference
is non-null, throwing aVerifyException
with a custom message otherwise. -
Uses of CanIgnoreReturnValue in com.google.common.collect
Methods in com.google.common.collect with annotations of type CanIgnoreReturnValue Modifier and Type Method Description int
ConcurrentHashMultiset. add(E element, int occurrences)
Adds a number of occurrences of the specified element to this multiset.int
EnumMultiset. add(E element, int occurrences)
boolean
EvictingQueue. add(E e)
Adds the given element to this queue.boolean
ForwardingCollection. add(E element)
int
ForwardingMultiset. add(E element, int occurrences)
boolean
ImmutableCollection. add(E e)
Deprecated.Unsupported operation.abstract ImmutableCollection.Builder<E>
ImmutableCollection.Builder. add(E element)
Addselement
to theImmutableCollection
being built.ImmutableCollection.Builder<E>
ImmutableCollection.Builder. add(E... elements)
Adds each element ofelements
to theImmutableCollection
being built.ImmutableList.Builder<E>
ImmutableList.Builder. add(E element)
Addselement
to theImmutableList
.ImmutableList.Builder<E>
ImmutableList.Builder. add(E... elements)
Adds each element ofelements
to theImmutableList
.int
ImmutableMultiset. add(E element, int occurrences)
Deprecated.Unsupported operation.ImmutableMultiset.Builder<E>
ImmutableMultiset.Builder. add(E element)
Addselement
to theImmutableMultiset
.ImmutableMultiset.Builder<E>
ImmutableMultiset.Builder. add(E... elements)
Adds each element ofelements
to theImmutableMultiset
.ImmutableRangeSet.Builder<C>
ImmutableRangeSet.Builder. add(Range<C> range)
Add the specified range to this builder.ImmutableSet.Builder<E>
ImmutableSet.Builder. add(E element)
ImmutableSet.Builder<E>
ImmutableSet.Builder. add(E... elements)
ImmutableSortedMultiset.Builder<E>
ImmutableSortedMultiset.Builder. add(E element)
Addselement
to theImmutableSortedMultiset
.ImmutableSortedMultiset.Builder<E>
ImmutableSortedMultiset.Builder. add(E... elements)
Adds each element ofelements
to theImmutableSortedMultiset
.ImmutableSortedSet.Builder<E>
ImmutableSortedSet.Builder. add(E element)
Addselement
to theImmutableSortedSet
.ImmutableSortedSet.Builder<E>
ImmutableSortedSet.Builder. add(E... elements)
Adds each element ofelements
to theImmutableSortedSet
, ignoring duplicate elements (only the first duplicate element is added).boolean
MinMaxPriorityQueue. add(E element)
Adds the given element to this queue.int
Multiset. add(@Nullable E element, int occurrences)
Adds a number of occurrences of an element to this multiset.boolean
Multiset. add(E element)
Adds a single occurrence of the specified element to this multiset.boolean
Sets.SetView. add(E e)
Deprecated.Unsupported operation.int
TreeMultiset. add(@Nullable E element, int occurrences)
boolean
EvictingQueue. addAll(java.util.Collection<? extends E> collection)
boolean
ForwardingCollection. addAll(java.util.Collection<? extends E> collection)
boolean
ForwardingList. addAll(int index, java.util.Collection<? extends E> elements)
boolean
ImmutableCollection. addAll(java.util.Collection<? extends E> newElements)
Deprecated.Unsupported operation.ImmutableCollection.Builder<E>
ImmutableCollection.Builder. addAll(java.lang.Iterable<? extends E> elements)
Adds each element ofelements
to theImmutableCollection
being built.ImmutableCollection.Builder<E>
ImmutableCollection.Builder. addAll(java.util.Iterator<? extends E> elements)
Adds each element ofelements
to theImmutableCollection
being built.boolean
ImmutableList. addAll(int index, java.util.Collection<? extends E> newElements)
Deprecated.Unsupported operation.ImmutableList.Builder<E>
ImmutableList.Builder. addAll(java.lang.Iterable<? extends E> elements)
Adds each element ofelements
to theImmutableList
.ImmutableList.Builder<E>
ImmutableList.Builder. addAll(java.util.Iterator<? extends E> elements)
Adds each element ofelements
to theImmutableList
.ImmutableMultiset.Builder<E>
ImmutableMultiset.Builder. addAll(java.lang.Iterable<? extends E> elements)
Adds each element ofelements
to theImmutableMultiset
.ImmutableMultiset.Builder<E>
ImmutableMultiset.Builder. addAll(java.util.Iterator<? extends E> elements)
Adds each element ofelements
to theImmutableMultiset
.ImmutableRangeSet.Builder<C>
ImmutableRangeSet.Builder. addAll(RangeSet<C> ranges)
Add all ranges from the specified range set to this builder.ImmutableRangeSet.Builder<C>
ImmutableRangeSet.Builder. addAll(java.lang.Iterable<Range<C>> ranges)
Add all of the specified ranges to this builder.ImmutableSet.Builder<E>
ImmutableSet.Builder. addAll(java.lang.Iterable<? extends E> elements)
ImmutableSet.Builder<E>
ImmutableSet.Builder. addAll(java.util.Iterator<? extends E> elements)
ImmutableSortedMultiset.Builder<E>
ImmutableSortedMultiset.Builder. addAll(java.lang.Iterable<? extends E> elements)
Adds each element ofelements
to theImmutableSortedMultiset
.ImmutableSortedMultiset.Builder<E>
ImmutableSortedMultiset.Builder. addAll(java.util.Iterator<? extends E> elements)
Adds each element ofelements
to theImmutableSortedMultiset
.ImmutableSortedSet.Builder<E>
ImmutableSortedSet.Builder. addAll(java.lang.Iterable<? extends E> elements)
Adds each element ofelements
to theImmutableSortedSet
, ignoring duplicate elements (only the first duplicate element is added).ImmutableSortedSet.Builder<E>
ImmutableSortedSet.Builder. addAll(java.util.Iterator<? extends E> elements)
Adds each element ofelements
to theImmutableSortedSet
, ignoring duplicate elements (only the first duplicate element is added).static <T> boolean
Iterables. addAll(java.util.Collection<T> addTo, java.lang.Iterable<? extends T> elementsToAdd)
Adds all elements initerable
tocollection
.static <T> boolean
Iterators. addAll(java.util.Collection<T> addTo, java.util.Iterator<? extends T> iterator)
Adds all elements initerator
tocollection
.boolean
MinMaxPriorityQueue. addAll(java.util.Collection<? extends E> newElements)
boolean
Sets.SetView. addAll(java.util.Collection<? extends E> newElements)
Deprecated.Unsupported operation.ImmutableMultiset.Builder<E>
ImmutableMultiset.Builder. addCopies(E element, int occurrences)
Adds a number of occurrences of an element to thisImmutableMultiset
.ImmutableSortedMultiset.Builder<E>
ImmutableSortedMultiset.Builder. addCopies(E element, int occurrences)
Adds a number of occurrences of an element to thisImmutableSortedMultiset
.static int
Iterators. advance(java.util.Iterator<?> iterator, int numberToAdvance)
Callsnext()
oniterator
, eithernumberToAdvance
times or untilhasNext()
returnsfalse
, whichever comes first.abstract int
Ordering. compare(@Nullable T left, @Nullable T right)
MapMaker
MapMaker. concurrencyLevel(int concurrencyLevel)
Guides the allowed concurrency among update operations.static boolean
Multisets. containsOccurrences(Multiset<?> superMultiset, Multiset<?> subMultiset)
Returnstrue
ifsubMultiset.count(o) <= superMultiset.count(o)
for allo
.<C extends java.util.Collection<? super E>>
CFluentIterable. copyInto(C collection)
Copies all the elements from this fluent iterable tocollection
.<S extends java.util.Set<E>>
SSets.SetView. copyInto(S set)
Copies the current contents of this set view into an existing set.static <E> int
Queues. drain(java.util.concurrent.BlockingQueue<E> q, java.util.Collection<? super E> buffer, int numElements, long timeout, java.util.concurrent.TimeUnit unit)
Drains the queue asBlockingQueue.drainTo(Collection, int)
, but if the requestednumElements
elements are not available, it will wait for them up to the specified timeout.static <E> int
Queues. drain(java.util.concurrent.BlockingQueue<E> q, java.util.Collection<? super E> buffer, int numElements, java.time.Duration timeout)
Drains the queue asBlockingQueue.drainTo(Collection, int)
, but if the requestednumElements
elements are not available, it will wait for them up to the specified timeout.static <E> int
Queues. drainUninterruptibly(java.util.concurrent.BlockingQueue<E> q, java.util.Collection<? super E> buffer, int numElements, long timeout, java.util.concurrent.TimeUnit unit)
Drains the queue as Queues.drain(BlockingQueue, Collection, int, long, TimeUnit), but with a different behavior in case it is interrupted while waiting.static <E> int
Queues. drainUninterruptibly(java.util.concurrent.BlockingQueue<E> q, java.util.Collection<? super E> buffer, int numElements, java.time.Duration timeout)
Drains the queue as Queues.drain(BlockingQueue, Collection, int, Duration), but with a different behavior in case it is interrupted while waiting.protected T
AbstractIterator. endOfData()
Implementations ofAbstractIterator.computeNext()
must invoke this method when there are no elements left in the iteration.V
ArrayTable. erase(@Nullable java.lang.Object rowKey, @Nullable java.lang.Object columnKey)
Associates the valuenull
with the specified keys, assuming both keys are valid.MinMaxPriorityQueue.Builder<B>
MinMaxPriorityQueue.Builder. expectedSize(int expectedSize)
Configures this builder to build min-max priority queues with an initial expected size ofexpectedSize
.@Nullable V
BiMap. forcePut(@Nullable K key, @Nullable V value)
An alternate form ofput
that silently removes any existing entry with the valuevalue
before proceeding with theBiMap.put(K, V)
operation.V
EnumHashBiMap. forcePut(K key, @Nullable V value)
@Nullable V
HashBiMap. forcePut(@Nullable K key, @Nullable V value)
V
ImmutableBiMap. forcePut(K key, V value)
Deprecated.Unsupported operation.boolean
AbstractIterator. hasNext()
MapMaker
MapMaker. initialCapacity(int initialCapacity)
Sets the minimum total size for the internal hash tables.E
Interner. intern(E sample)
Chooses and returns the representative instance for any of a collection of instances that are equal to each other.static <K,V,M extends Multimap<K,V>>
MMultimaps. invertFrom(Multimap<? extends V,? extends K> source, M dest)
Copies each key-value mapping insource
intodest
, with its key and value reversed.MinMaxPriorityQueue.Builder<B>
MinMaxPriorityQueue.Builder. maximumSize(int maximumSize)
Configures this builder to buildMinMaxPriorityQueue
instances that are limited tomaximumSize
elements.C
DiscreteDomain. maxValue()
Returns the maximum value of typeC
, if it has one.C
DiscreteDomain. minValue()
Returns the minimum value of typeC
, if it has one.T
AbstractIterator. next()
T
ForwardingIterator. next()
E
PeekingIterator. next()
boolean
EvictingQueue. offer(E e)
Adds the given element to this queue.boolean
ForwardingQueue. offer(E o)
boolean
MinMaxPriorityQueue. offer(E element)
Adds the given element to this queue.boolean
ForwardingDeque. offerFirst(E e)
boolean
ForwardingDeque. offerLast(E e)
ImmutableTable.Builder<R,C,V>
ImmutableTable.Builder. orderColumnsBy(java.util.Comparator<? super C> columnComparator)
Specifies the ordering of the generated table's columns.ImmutableBiMap.Builder<K,V>
ImmutableBiMap.Builder. orderEntriesByValue(java.util.Comparator<? super V> valueComparator)
Configures thisBuilder
to order entries by value according to the specified comparator.ImmutableMap.Builder<K,V>
ImmutableMap.Builder. orderEntriesByValue(java.util.Comparator<? super V> valueComparator)
Configures thisBuilder
to order entries by value according to the specified comparator.ImmutableSortedMap.Builder<K,V>
ImmutableSortedMap.Builder. orderEntriesByValue(java.util.Comparator<? super V> valueComparator)
Deprecated.Unsupported by ImmutableSortedMap.Builder.ImmutableListMultimap.Builder<K,V>
ImmutableListMultimap.Builder. orderKeysBy(java.util.Comparator<? super K> keyComparator)
Specifies the ordering of the generated multimap's keys.ImmutableMultimap.Builder<K,V>
ImmutableMultimap.Builder. orderKeysBy(java.util.Comparator<? super K> keyComparator)
Specifies the ordering of the generated multimap's keys.ImmutableSetMultimap.Builder<K,V>
ImmutableSetMultimap.Builder. orderKeysBy(java.util.Comparator<? super K> keyComparator)
Specifies the ordering of the generated multimap's keys.ImmutableTable.Builder<R,C,V>
ImmutableTable.Builder. orderRowsBy(java.util.Comparator<? super R> rowComparator)
Specifies the ordering of the generated table's rows.ImmutableListMultimap.Builder<K,V>
ImmutableListMultimap.Builder. orderValuesBy(java.util.Comparator<? super V> valueComparator)
Specifies the ordering of the generated multimap's values for each key.ImmutableMultimap.Builder<K,V>
ImmutableMultimap.Builder. orderValuesBy(java.util.Comparator<? super V> valueComparator)
Specifies the ordering of the generated multimap's values for each key.ImmutableSetMultimap.Builder<K,V>
ImmutableSetMultimap.Builder. orderValuesBy(java.util.Comparator<? super V> valueComparator)
Specifies the ordering of the generated multimap's values for each key.E
ForwardingQueue. poll()
E
MinMaxPriorityQueue. poll()
E
ForwardingDeque. pollFirst()
E
ImmutableSortedSet. pollFirst()
Deprecated.Unsupported operation.E
MinMaxPriorityQueue. pollFirst()
Removes and returns the least element of this queue, or returnsnull
if the queue is empty.java.util.Map.Entry<K,V>
ImmutableSortedMap. pollFirstEntry()
Deprecated.Unsupported operation.Multiset.Entry<E>
ImmutableSortedMultiset. pollFirstEntry()
Deprecated.Unsupported operation.E
ForwardingDeque. pollLast()
E
ImmutableSortedSet. pollLast()
Deprecated.Unsupported operation.E
MinMaxPriorityQueue. pollLast()
Removes and returns the greatest element of this queue, or returnsnull
if the queue is empty.java.util.Map.Entry<K,V>
ImmutableSortedMap. pollLastEntry()
Deprecated.Unsupported operation.Multiset.Entry<E>
ImmutableSortedMultiset. pollLastEntry()
Deprecated.Unsupported operation.E
ForwardingDeque. pop()
E
ForwardingListIterator. previous()
V
ArrayTable. put(R rowKey, C columnKey, @Nullable V value)
Associates the specified value with the specified keys.@Nullable V
BiMap. put(@Nullable K key, @Nullable V value)
V
EnumHashBiMap. put(K key, @Nullable V value)
V
ForwardingMap. put(K key, V value)
boolean
ForwardingMultimap. put(K key, V value)
V
ForwardingTable. put(R rowKey, C columnKey, V value)
V
HashBiMap. put(@Nullable K key, @Nullable V value)
ImmutableBiMap.Builder<K,V>
ImmutableBiMap.Builder. put(java.util.Map.Entry<? extends K,? extends V> entry)
Adds the givenentry
to the bimap.ImmutableBiMap.Builder<K,V>
ImmutableBiMap.Builder. put(K key, V value)
Associateskey
withvalue
in the built bimap.<T extends B>
ImmutableClassToInstanceMap.Builder<B>ImmutableClassToInstanceMap.Builder. put(java.lang.Class<T> key, T value)
Associateskey
withvalue
in the built map.ImmutableListMultimap.Builder<K,V>
ImmutableListMultimap.Builder. put(java.util.Map.Entry<? extends K,? extends V> entry)
Adds an entry to the built multimap.ImmutableListMultimap.Builder<K,V>
ImmutableListMultimap.Builder. put(K key, V value)
ImmutableMap.Builder<K,V>
ImmutableMap.Builder. put(java.util.Map.Entry<? extends K,? extends V> entry)
Adds the givenentry
to the map, making it immutable if necessary.ImmutableMap.Builder<K,V>
ImmutableMap.Builder. put(K key, V value)
Associateskey
withvalue
in the built map.V
ImmutableMap. put(K k, V v)
Deprecated.Unsupported operation.ImmutableMultimap.Builder<K,V>
ImmutableMultimap.Builder. put(java.util.Map.Entry<? extends K,? extends V> entry)
Adds an entry to the built multimap.ImmutableMultimap.Builder<K,V>
ImmutableMultimap.Builder. put(K key, V value)
Adds a key-value mapping to the built multimap.boolean
ImmutableMultimap. put(K key, V value)
Deprecated.Unsupported operation.ImmutableRangeMap.Builder<K,V>
ImmutableRangeMap.Builder. put(Range<K> range, V value)
Associates the specified range with the specified value.ImmutableSetMultimap.Builder<K,V>
ImmutableSetMultimap.Builder. put(java.util.Map.Entry<? extends K,? extends V> entry)
Adds an entry to the built multimap if it is not already present.ImmutableSetMultimap.Builder<K,V>
ImmutableSetMultimap.Builder. put(K key, V value)
Adds a key-value mapping to the built multimap if it is not already present.ImmutableSortedMap.Builder<K,V>
ImmutableSortedMap.Builder. put(java.util.Map.Entry<? extends K,? extends V> entry)
Adds the givenentry
to the map, making it immutable if necessary.ImmutableSortedMap.Builder<K,V>
ImmutableSortedMap.Builder. put(K key, V value)
Associateskey
withvalue
in the built map.ImmutableTable.Builder<R,C,V>
ImmutableTable.Builder. put(Table.Cell<? extends R,? extends C,? extends V> cell)
Adds the givencell
to the table, making it immutable if necessary.ImmutableTable.Builder<R,C,V>
ImmutableTable.Builder. put(R rowKey, C columnKey, V value)
Associates the (rowKey
,columnKey
) pair withvalue
in the built table.V
ImmutableTable. put(R rowKey, C columnKey, V value)
Deprecated.Unsupported operation.boolean
LinkedListMultimap. put(@Nullable K key, @Nullable V value)
Stores a key-value pair in the multimap.boolean
Multimap. put(@Nullable K key, @Nullable V value)
Stores a key-value pair in this multimap.B
MutableClassToInstanceMap. put(java.lang.Class<? extends B> key, B value)
@Nullable V
Table. put(R rowKey, C columnKey, V value)
Associates the specified value with the specified keys.boolean
ForwardingMultimap. putAll(Multimap<? extends K,? extends V> multimap)
boolean
ForwardingMultimap. putAll(K key, java.lang.Iterable<? extends V> values)
ImmutableBiMap.Builder<K,V>
ImmutableBiMap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
Adds all of the given entries to the built bimap.ImmutableBiMap.Builder<K,V>
ImmutableBiMap.Builder. putAll(java.util.Map<? extends K,? extends V> map)
Associates all of the given map's keys and values in the built bimap.<T extends B>
ImmutableClassToInstanceMap.Builder<B>ImmutableClassToInstanceMap.Builder. putAll(java.util.Map<? extends java.lang.Class<? extends T>,? extends T> map)
Associates all ofmap's
keys and values in the built map.ImmutableListMultimap.Builder<K,V>
ImmutableListMultimap.Builder. putAll(Multimap<? extends K,? extends V> multimap)
ImmutableListMultimap.Builder<K,V>
ImmutableListMultimap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
Adds entries to the built multimap.ImmutableListMultimap.Builder<K,V>
ImmutableListMultimap.Builder. putAll(K key, java.lang.Iterable<? extends V> values)
ImmutableListMultimap.Builder<K,V>
ImmutableListMultimap.Builder. putAll(K key, V... values)
ImmutableMap.Builder<K,V>
ImmutableMap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
Adds all of the given entries to the built map.ImmutableMap.Builder<K,V>
ImmutableMap.Builder. putAll(java.util.Map<? extends K,? extends V> map)
Associates all of the given map's keys and values in the built map.ImmutableMultimap.Builder<K,V>
ImmutableMultimap.Builder. putAll(Multimap<? extends K,? extends V> multimap)
Stores another multimap's entries in the built multimap.ImmutableMultimap.Builder<K,V>
ImmutableMultimap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
Adds entries to the built multimap.ImmutableMultimap.Builder<K,V>
ImmutableMultimap.Builder. putAll(K key, java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key in the built multimap.ImmutableMultimap.Builder<K,V>
ImmutableMultimap.Builder. putAll(K key, V... values)
Stores an array of values with the same key in the built multimap.boolean
ImmutableMultimap. putAll(Multimap<? extends K,? extends V> multimap)
Deprecated.Unsupported operation.boolean
ImmutableMultimap. putAll(K key, java.lang.Iterable<? extends V> values)
Deprecated.Unsupported operation.ImmutableRangeMap.Builder<K,V>
ImmutableRangeMap.Builder. putAll(RangeMap<K,? extends V> rangeMap)
Copies all associations from the specified range map into this builder.ImmutableSetMultimap.Builder<K,V>
ImmutableSetMultimap.Builder. putAll(Multimap<? extends K,? extends V> multimap)
ImmutableSetMultimap.Builder<K,V>
ImmutableSetMultimap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
Adds entries to the built multimap.ImmutableSetMultimap.Builder<K,V>
ImmutableSetMultimap.Builder. putAll(K key, java.lang.Iterable<? extends V> values)
ImmutableSetMultimap.Builder<K,V>
ImmutableSetMultimap.Builder. putAll(K key, V... values)
ImmutableSortedMap.Builder<K,V>
ImmutableSortedMap.Builder. putAll(java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
Adds all the given entries to the built map.ImmutableSortedMap.Builder<K,V>
ImmutableSortedMap.Builder. putAll(java.util.Map<? extends K,? extends V> map)
Associates all of the given map's keys and values in the built map.ImmutableTable.Builder<R,C,V>
ImmutableTable.Builder. putAll(Table<? extends R,? extends C,? extends V> table)
Associates all of the given table's keys and values in the built table.boolean
Multimap. putAll(@Nullable K key, java.lang.Iterable<? extends V> values)
Stores a key-value pair in this multimap for each ofvalues
, all using the same key,key
.boolean
Multimap. putAll(Multimap<? extends K,? extends V> multimap)
Stores all key-value pairs ofmultimap
in this multimap, in the order returned bymultimap.entries()
.V
ForwardingConcurrentMap. putIfAbsent(K key, V value)
V
ImmutableMap. putIfAbsent(K key, V value)
Deprecated.Unsupported operation.<T extends B>
TClassToInstanceMap. putInstance(java.lang.Class<T> type, @Nullable T value)
Maps the specified class to the specified value.<T extends B>
TImmutableClassToInstanceMap. putInstance(java.lang.Class<T> type, T value)
Deprecated.Unsupported operation.<T extends B>
TMutableClassToInstanceMap. putInstance(java.lang.Class<T> type, T value)
V
ArrayTable. remove(java.lang.Object rowKey, java.lang.Object columnKey)
Deprecated.int
ConcurrentHashMultiset. remove(@Nullable java.lang.Object element, int occurrences)
Removes a number of occurrences of the specified element from this multiset.int
EnumMultiset. remove(@Nullable java.lang.Object element, int occurrences)
boolean
EvictingQueue. remove(java.lang.Object object)
boolean
ForwardingCollection. remove(java.lang.Object object)
boolean
ForwardingConcurrentMap. remove(java.lang.Object key, java.lang.Object value)
E
ForwardingList. remove(int index)
V
ForwardingMap. remove(java.lang.Object object)
boolean
ForwardingMultimap. remove(@Nullable java.lang.Object key, @Nullable java.lang.Object value)
int
ForwardingMultiset. remove(java.lang.Object element, int occurrences)
E
ForwardingQueue. remove()
V
ForwardingTable. remove(java.lang.Object rowKey, java.lang.Object columnKey)
V
HashBasedTable. remove(@Nullable java.lang.Object rowKey, @Nullable java.lang.Object columnKey)
@Nullable V
HashBiMap. remove(@Nullable java.lang.Object key)
boolean
ImmutableCollection. remove(java.lang.Object object)
Deprecated.Unsupported operation.E
ImmutableList. remove(int index)
Deprecated.Unsupported operation.boolean
ImmutableMultimap. remove(java.lang.Object key, java.lang.Object value)
Deprecated.Unsupported operation.int
ImmutableMultiset. remove(java.lang.Object element, int occurrences)
Deprecated.Unsupported operation.V
ImmutableTable. remove(java.lang.Object rowKey, java.lang.Object columnKey)
Deprecated.Unsupported operation.boolean
Multimap. remove(@Nullable java.lang.Object key, @Nullable java.lang.Object value)
Removes a single key-value pair with the keykey
and the valuevalue
from this multimap, if such exists.boolean
Multiset. remove(@Nullable java.lang.Object element)
Removes a single occurrence of the specified element from this multiset, if present.int
Multiset. remove(@Nullable java.lang.Object element, int occurrences)
Removes a number of occurrences of the specified element from this multiset.boolean
Sets.SetView. remove(java.lang.Object object)
Deprecated.Unsupported operation.@Nullable V
Table. remove(@Nullable java.lang.Object rowKey, @Nullable java.lang.Object columnKey)
Removes the mapping, if any, associated with the given keys.int
TreeMultiset. remove(@Nullable java.lang.Object element, int occurrences)
boolean
ForwardingCollection. removeAll(java.util.Collection<?> collection)
java.util.List<V>
ForwardingListMultimap. removeAll(@Nullable java.lang.Object key)
java.util.Collection<V>
ForwardingMultimap. removeAll(@Nullable java.lang.Object key)
java.util.Set<V>
ForwardingSetMultimap. removeAll(@Nullable java.lang.Object key)
boolean
ImmutableCollection. removeAll(java.util.Collection<?> oldElements)
Deprecated.Unsupported operation.ImmutableList<V>
ImmutableListMultimap. removeAll(java.lang.Object key)
Deprecated.Unsupported operation.ImmutableCollection<V>
ImmutableMultimap. removeAll(java.lang.Object key)
Deprecated.Unsupported operation.ImmutableSet<V>
ImmutableSetMultimap. removeAll(java.lang.Object key)
Deprecated.Unsupported operation.static boolean
Iterables. removeAll(java.lang.Iterable<?> removeFrom, java.util.Collection<?> elementsToRemove)
Removes, from an iterable, every element that belongs to the provided collection.static boolean
Iterators. removeAll(java.util.Iterator<?> removeFrom, java.util.Collection<?> elementsToRemove)
Traverses an iterator and removes every element that belongs to the provided collection.java.util.List<V>
LinkedListMultimap. removeAll(@Nullable java.lang.Object key)
Removes all values associated with the keykey
.java.util.List<V>
ListMultimap. removeAll(@Nullable java.lang.Object key)
Removes all values associated with the keykey
.java.util.Collection<V>
Multimap. removeAll(@Nullable java.lang.Object key)
Removes all values associated with the keykey
.boolean
Multiset. removeAll(java.util.Collection<?> c)
java.util.Set<V>
SetMultimap. removeAll(@Nullable java.lang.Object key)
Removes all values associated with the keykey
.boolean
Sets.SetView. removeAll(java.util.Collection<?> oldElements)
Deprecated.Unsupported operation.java.util.SortedSet<V>
SortedSetMultimap. removeAll(@Nullable java.lang.Object key)
Removes all values associated with a given key.boolean
ConcurrentHashMultiset. removeExactly(@Nullable java.lang.Object element, int occurrences)
Removes exactly the specified number of occurrences ofelement
, or makes no change if this is not possible.E
ForwardingDeque. removeFirst()
E
MinMaxPriorityQueue. removeFirst()
Removes and returns the least element of this queue.boolean
ForwardingDeque. removeFirstOccurrence(java.lang.Object o)
boolean
ImmutableCollection. removeIf(java.util.function.Predicate<? super E> filter)
Deprecated.Unsupported operation.static <T> boolean
Iterables. removeIf(java.lang.Iterable<T> removeFrom, Predicate<? super T> predicate)
Removes, from an iterable, every element that satisfies the provided predicate.static <T> boolean
Iterators. removeIf(java.util.Iterator<T> removeFrom, Predicate<? super T> predicate)
Removes every element that satisfies the provided predicate from the iterator.boolean
Sets.SetView. removeIf(java.util.function.Predicate<? super E> filter)
Deprecated.Unsupported operation.E
ForwardingDeque. removeLast()
E
MinMaxPriorityQueue. removeLast()
Removes and returns the greatest element of this queue.boolean
ForwardingDeque. removeLastOccurrence(java.lang.Object o)
static boolean
Multisets. removeOccurrences(Multiset<?> multisetToModify, Multiset<?> occurrencesToRemove)
For each occurrence of an elemente
inoccurrencesToRemove
, removes one occurrence ofe
inmultisetToModify
.static boolean
Multisets. removeOccurrences(Multiset<?> multisetToModify, java.lang.Iterable<?> occurrencesToRemove)
For each occurrence of an elemente
inoccurrencesToRemove
, removes one occurrence ofe
inmultisetToModify
.V
ForwardingConcurrentMap. replace(K key, V value)
boolean
ForwardingConcurrentMap. replace(K key, V oldValue, V newValue)
java.util.List<V>
ForwardingListMultimap. replaceValues(K key, java.lang.Iterable<? extends V> values)
java.util.Collection<V>
ForwardingMultimap. replaceValues(K key, java.lang.Iterable<? extends V> values)
java.util.Set<V>
ForwardingSetMultimap. replaceValues(K key, java.lang.Iterable<? extends V> values)
ImmutableList<V>
ImmutableListMultimap. replaceValues(K key, java.lang.Iterable<? extends V> values)
Deprecated.Unsupported operation.ImmutableCollection<V>
ImmutableMultimap. replaceValues(K key, java.lang.Iterable<? extends V> values)
Deprecated.Unsupported operation.ImmutableSet<V>
ImmutableSetMultimap. replaceValues(K key, java.lang.Iterable<? extends V> values)
Deprecated.Unsupported operation.java.util.Set<V>
LinkedHashMultimap. replaceValues(@Nullable K key, java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing values for that key.java.util.List<V>
LinkedListMultimap. replaceValues(@Nullable K key, java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing values for that key.java.util.List<V>
ListMultimap. replaceValues(K key, java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing values for that key.java.util.Collection<V>
Multimap. replaceValues(@Nullable K key, java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing values for that key.java.util.Set<V>
SetMultimap. replaceValues(K key, java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing values for that key.java.util.SortedSet<V>
SortedSetMultimap. replaceValues(K key, java.lang.Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing values for that key.boolean
ForwardingCollection. retainAll(java.util.Collection<?> collection)
static boolean
Iterables. retainAll(java.lang.Iterable<?> removeFrom, java.util.Collection<?> elementsToRetain)
Removes, from an iterable, every element that does not belong to the provided collection.static boolean
Iterators. retainAll(java.util.Iterator<?> removeFrom, java.util.Collection<?> elementsToRetain)
Traverses an iterator and removes every element that does not belong to the provided collection.boolean
Multiset. retainAll(java.util.Collection<?> c)
boolean
Sets.SetView. retainAll(java.util.Collection<?> elementsToKeep)
Deprecated.Unsupported operation.static boolean
Multisets. retainOccurrences(Multiset<?> multisetToModify, Multiset<?> multisetToRetain)
ModifiesmultisetToModify
so that its count for an elemente
is at mostmultisetToRetain.count(e)
.V
ArrayTable. set(int rowIndex, int columnIndex, @Nullable V value)
Associatesvalue
with the specified row and column indices.E
ForwardingList. set(int index, E element)
E
ImmutableList. set(int index, E element)
Deprecated.Unsupported operation.int
ConcurrentHashMultiset. setCount(E element, int count)
Adds or removes occurrences ofelement
such that theConcurrentHashMultiset.count(java.lang.Object)
of the element becomescount
.boolean
ConcurrentHashMultiset. setCount(E element, int expectedOldCount, int newCount)
Sets the number of occurrences ofelement
tonewCount
, but only if the count is currentlyexpectedOldCount
.int
EnumMultiset. setCount(E element, int count)
int
ForwardingMultiset. setCount(E element, int count)
boolean
ForwardingMultiset. setCount(E element, int oldCount, int newCount)
ImmutableMultiset.Builder<E>
ImmutableMultiset.Builder. setCount(E element, int count)
Adds or removes the necessary occurrences of an element such that the element attains the desired count.int
ImmutableMultiset. setCount(E element, int count)
Deprecated.Unsupported operation.boolean
ImmutableMultiset. setCount(E element, int oldCount, int newCount)
Deprecated.Unsupported operation.ImmutableSortedMultiset.Builder<E>
ImmutableSortedMultiset.Builder. setCount(E element, int count)
Adds or removes the necessary occurrences of an element such that the element attains the desired count.int
Multiset. setCount(E element, int count)
Adds or removes the necessary occurrences of an element such that the element attains the desired count.boolean
Multiset. setCount(E element, int oldCount, int newCount)
Conditionally sets the count of an element to a new value, as described inMultiset.setCount(Object, int)
, provided that the element has the expected current count.int
TreeMultiset. setCount(@Nullable E element, int count)
boolean
TreeMultiset. setCount(@Nullable E element, int oldCount, int newCount)
<T> T[]
ForwardingCollection. toArray(T[] array)
<T> T[]
ImmutableCollection. toArray(T[] other)
static <K,V>
ImmutableMap<K,V>Maps. uniqueIndex(java.lang.Iterable<V> values, Function<? super V,K> keyFunction)
Returns a map with the givenvalues
, indexed by keys derived from those values.static <K,V>
ImmutableMap<K,V>Maps. uniqueIndex(java.util.Iterator<V> values, Function<? super V,K> keyFunction)
Returns a map with the givenvalues
, indexed by keys derived from those values.MapMaker
MapMaker. weakKeys()
Specifies that each key (not value) stored in the map should be wrapped in aWeakReference
(by default, strong references are used).MapMaker
MapMaker. weakValues()
Specifies that each value (not key) stored in the map should be wrapped in aWeakReference
(by default, strong references are used). -
Uses of CanIgnoreReturnValue in com.google.common.escape
Methods in com.google.common.escape with annotations of type CanIgnoreReturnValue Modifier and Type Method Description CharEscaperBuilder
CharEscaperBuilder. addEscape(char c, java.lang.String r)
Add a new mapping from an index to an object to the escaping.Escapers.Builder
Escapers.Builder. addEscape(char c, java.lang.String replacement)
Adds a replacement string for the given input character.CharEscaperBuilder
CharEscaperBuilder. addEscapes(char[] cs, java.lang.String r)
Add multiple mappings at once for a particular index.Escapers.Builder
Escapers.Builder. setSafeRange(char safeMin, char safeMax)
Sets the safe range of characters for the escaper.Escapers.Builder
Escapers.Builder. setUnsafeReplacement(@Nullable java.lang.String unsafeReplacement)
Sets the replacement string for any characters outside the 'safe' range that have no explicit replacement. -
Uses of CanIgnoreReturnValue in com.google.common.graph
Methods in com.google.common.graph with annotations of type CanIgnoreReturnValue Modifier and Type Method Description ImmutableNetwork.Builder<N,E>
ImmutableNetwork.Builder. addEdge(EndpointPair<N> endpoints, E edge)
Addsedge
connectingendpoints
.ImmutableNetwork.Builder<N,E>
ImmutableNetwork.Builder. addEdge(N nodeU, N nodeV, E edge)
Addsedge
connectingnodeU
tonodeV
.boolean
MutableNetwork. addEdge(EndpointPair<N> endpoints, E edge)
Addsedge
connectingendpoints
.boolean
MutableNetwork. addEdge(N nodeU, N nodeV, E edge)
Addsedge
connectingnodeU
tonodeV
.ImmutableGraph.Builder<N>
ImmutableGraph.Builder. addNode(N node)
Addsnode
if it is not already present.ImmutableNetwork.Builder<N,E>
ImmutableNetwork.Builder. addNode(N node)
Addsnode
if it is not already present.ImmutableValueGraph.Builder<N,V>
ImmutableValueGraph.Builder. addNode(N node)
Addsnode
if it is not already present.boolean
MutableGraph. addNode(N node)
Addsnode
if it is not already present.boolean
MutableNetwork. addNode(N node)
Addsnode
if it is not already present.boolean
MutableValueGraph. addNode(N node)
Addsnode
if it is not already present.ImmutableGraph.Builder<N>
ImmutableGraph.Builder. putEdge(EndpointPair<N> endpoints)
Adds an edge connectingendpoints
(in the order, if any, specified byendpoints
) if one is not already present.ImmutableGraph.Builder<N>
ImmutableGraph.Builder. putEdge(N nodeU, N nodeV)
Adds an edge connectingnodeU
tonodeV
if one is not already present.boolean
MutableGraph. putEdge(EndpointPair<N> endpoints)
Adds an edge connectingendpoints
(in the order, if any, specified byendpoints
) if one is not already present.boolean
MutableGraph. putEdge(N nodeU, N nodeV)
Adds an edge connectingnodeU
tonodeV
if one is not already present.ImmutableValueGraph.Builder<N,V>
ImmutableValueGraph.Builder. putEdgeValue(EndpointPair<N> endpoints, V value)
Adds an edge connectingendpoints
if one is not already present, and sets a value for that edge tovalue
(overwriting the existing value, if any).ImmutableValueGraph.Builder<N,V>
ImmutableValueGraph.Builder. putEdgeValue(N nodeU, N nodeV, V value)
Adds an edge connectingnodeU
tonodeV
if one is not already present, and sets a value for that edge tovalue
(overwriting the existing value, if any).V
MutableValueGraph. putEdgeValue(EndpointPair<N> endpoints, V value)
Adds an edge connectingendpoints
if one is not already present, and sets a value for that edge tovalue
(overwriting the existing value, if any).V
MutableValueGraph. putEdgeValue(N nodeU, N nodeV, V value)
Adds an edge connectingnodeU
tonodeV
if one is not already present, and sets a value for that edge tovalue
(overwriting the existing value, if any).boolean
MutableGraph. removeEdge(EndpointPair<N> endpoints)
Removes the edge connectingendpoints
, if it is present.boolean
MutableGraph. removeEdge(N nodeU, N nodeV)
Removes the edge connectingnodeU
tonodeV
, if it is present.boolean
MutableNetwork. removeEdge(E edge)
Removesedge
from this network, if it is present.V
MutableValueGraph. removeEdge(EndpointPair<N> endpoints)
Removes the edge connectingendpoints
, if it is present.V
MutableValueGraph. removeEdge(N nodeU, N nodeV)
Removes the edge connectingnodeU
tonodeV
, if it is present.boolean
MutableGraph. removeNode(N node)
Removesnode
if it is present; all edges incident tonode
will also be removed.boolean
MutableNetwork. removeNode(N node)
Removesnode
if it is present; all edges incident tonode
will also be removed.boolean
MutableValueGraph. removeNode(N node)
Removesnode
if it is present; all edges incident tonode
will also be removed. -
Uses of CanIgnoreReturnValue in com.google.common.hash
Classes in com.google.common.hash with annotations of type CanIgnoreReturnValue Modifier and Type Interface Description interface
Hasher
APrimitiveSink
that can compute a hash code after reading the input.interface
PrimitiveSink
An object which can receive a stream of primitive values.Methods in com.google.common.hash with annotations of type CanIgnoreReturnValue Modifier and Type Method Description boolean
BloomFilter. put(T object)
Puts an element into thisBloomFilter
.int
HashingInputStream. read()
Reads the next byte of data from the underlying input stream and updates the hasher with the byte read.int
HashingInputStream. read(byte[] bytes, int off, int len)
Reads the specified bytes of data from the underlying input stream and updates the hasher with the bytes read.int
HashCode. writeBytesTo(byte[] dest, int offset, int maxLength)
Copies bytes from this hash code intodest
. -
Uses of CanIgnoreReturnValue in com.google.common.io
Methods in com.google.common.io with annotations of type CanIgnoreReturnValue Modifier and Type Method Description static long
ByteStreams. copy(java.io.InputStream from, java.io.OutputStream to)
Copies all bytes from the input stream to the output stream.static long
ByteStreams. copy(java.nio.channels.ReadableByteChannel from, java.nio.channels.WritableByteChannel to)
Copies all bytes from the readable channel to the writable channel.static long
CharStreams. copy(java.lang.Readable from, java.lang.Appendable to)
Copies all characters between theReadable
andAppendable
objects.long
ByteSource. copyTo(ByteSink sink)
Copies the contents of this byte source to the givenByteSink
.long
ByteSource. copyTo(java.io.OutputStream output)
Copies the contents of this byte source to the givenOutputStream
.long
CharSource. copyTo(CharSink sink)
Copies the contents of this source to the given sink.long
CharSource. copyTo(java.lang.Appendable appendable)
Appends the contents of this source to the givenAppendable
(such as aWriter
).static long
ByteStreams. exhaust(java.io.InputStream in)
Reads and discards data from the givenInputStream
until the end of the stream is reached.static long
CharStreams. exhaust(java.lang.Readable readable)
Reads and discards data from the givenReadable
until the end of the stream is reached.static java.net.URL
Resources. getResource(java.lang.Class<?> contextClass, java.lang.String resourceName)
Given aresourceName
that is relative tocontextClass
, returns aURL
pointing to the named resource.static java.net.URL
Resources. getResource(java.lang.String resourceName)
Returns aURL
pointing toresourceName
if the resource is found using the context class loader.boolean
ByteProcessor. processBytes(byte[] buf, int off, int len)
This method will be called for each chunk of bytes in an input stream.boolean
LineProcessor. processLine(java.lang.String line)
This method will be called once for each line.<T> T
ByteSource. read(ByteProcessor<T> processor)
Reads the contents of this byte source using the givenprocessor
to process bytes as they are read.static int
ByteStreams. read(java.io.InputStream in, byte[] b, int off, int len)
Reads some bytes from an input stream and stores them into the buffer arrayb
.boolean
ByteArrayDataInput. readBoolean()
boolean
LittleEndianDataInputStream. readBoolean()
byte
ByteArrayDataInput. readByte()
byte
LittleEndianDataInputStream. readByte()
static <T> T
ByteStreams. readBytes(java.io.InputStream input, ByteProcessor<T> processor)
Process the bytes of the given input stream using the given processor.static <T> T
Files. readBytes(java.io.File file, ByteProcessor<T> processor)
Deprecated.PreferasByteSource(file).read(processor)
.char
ByteArrayDataInput. readChar()
char
LittleEndianDataInputStream. readChar()
Reads a char as specified byDataInputStream.readChar()
, except using little-endian byte order.double
ByteArrayDataInput. readDouble()
double
LittleEndianDataInputStream. readDouble()
Reads adouble
as specified byDataInputStream.readDouble()
, except using little-endian byte order.float
ByteArrayDataInput. readFloat()
float
LittleEndianDataInputStream. readFloat()
Reads afloat
as specified byDataInputStream.readFloat()
, except using little-endian byte order.int
ByteArrayDataInput. readInt()
int
LittleEndianDataInputStream. readInt()
Reads an integer as specified byDataInputStream.readInt()
, except using little-endian byte order.java.lang.String
ByteArrayDataInput. readLine()
java.lang.String
LineReader. readLine()
Reads a line of text.java.lang.String
LittleEndianDataInputStream. readLine()
This method will throw anUnsupportedOperationException
.<T> T
CharSource. readLines(LineProcessor<T> processor)
Reads lines of text from this source, processing each line as it is read using the givenprocessor
.static <T> T
CharStreams. readLines(java.lang.Readable readable, LineProcessor<T> processor)
Streams lines from aReadable
object, stopping when the processor returnsfalse
or all lines have been read and returning the result produced by the processor.static <T> T
Files. readLines(java.io.File file, java.nio.charset.Charset charset, LineProcessor<T> callback)
Deprecated.PreferasCharSource(file, charset).readLines(callback)
.static <T> T
Resources. readLines(java.net.URL url, java.nio.charset.Charset charset, LineProcessor<T> callback)
Streams lines from a URL, stopping when our callback returns false, or we have read all of the lines.long
ByteArrayDataInput. readLong()
long
LittleEndianDataInputStream. readLong()
Reads along
as specified byDataInputStream.readLong()
, except using little-endian byte order.short
ByteArrayDataInput. readShort()
short
LittleEndianDataInputStream. readShort()
Reads ashort
as specified byDataInputStream.readShort()
, except using little-endian byte order.int
ByteArrayDataInput. readUnsignedByte()
int
LittleEndianDataInputStream. readUnsignedByte()
int
ByteArrayDataInput. readUnsignedShort()
int
LittleEndianDataInputStream. readUnsignedShort()
Reads an unsignedshort
as specified byDataInputStream.readUnsignedShort()
, except using little-endian byte order.java.lang.String
ByteArrayDataInput. readUTF()
java.lang.String
LittleEndianDataInputStream. readUTF()
<C extends java.io.Closeable>
CCloser. register(@Nullable C closeable)
long
ByteSink. writeFrom(java.io.InputStream input)
Writes all the bytes from the givenInputStream
to this sink.long
CharSink. writeFrom(java.lang.Readable readable)
Writes all the text from the givenReadable
(such as aReader
) to this sink. -
Uses of CanIgnoreReturnValue in com.google.common.primitives
Classes in com.google.common.primitives with annotations of type CanIgnoreReturnValue Modifier and Type Class Description static class
ImmutableDoubleArray.Builder
A builder forImmutableDoubleArray
instances; obtained usingImmutableDoubleArray.builder(int)
.static class
ImmutableIntArray.Builder
A builder forImmutableIntArray
instances; obtained usingImmutableIntArray.builder(int)
.static class
ImmutableLongArray.Builder
A builder forImmutableLongArray
instances; obtained usingImmutableLongArray.builder(int)
.Methods in com.google.common.primitives with annotations of type CanIgnoreReturnValue Modifier and Type Method Description static byte
UnsignedBytes. checkedCast(long value)
Returns thebyte
value that, when treated as unsigned, is equal tovalue
, if possible.static int
UnsignedInts. decode(java.lang.String stringValue)
Returns the unsignedint
value represented by the given string.static long
UnsignedLongs. decode(java.lang.String stringValue)
Returns the unsignedlong
value represented by the given string.static byte
UnsignedBytes. parseUnsignedByte(java.lang.String string)
Returns the unsignedbyte
value represented by the given decimal string.static byte
UnsignedBytes. parseUnsignedByte(java.lang.String string, int radix)
Returns the unsignedbyte
value represented by a string with the given radix.static int
UnsignedInts. parseUnsignedInt(java.lang.String s)
Returns the unsignedint
value represented by the given decimal string.static int
UnsignedInts. parseUnsignedInt(java.lang.String string, int radix)
Returns the unsignedint
value represented by a string with the given radix.static long
UnsignedLongs. parseUnsignedLong(java.lang.String string)
Returns the unsignedlong
value represented by the given decimal string.static long
UnsignedLongs. parseUnsignedLong(java.lang.String string, int radix)
Returns the unsignedlong
value represented by a string with the given radix.static UnsignedLong
UnsignedLong. valueOf(long value)
Returns anUnsignedLong
representing the same value as the specifiedlong
.static UnsignedLong
UnsignedLong. valueOf(java.lang.String string)
Returns anUnsignedLong
holding the value of the specifiedString
, parsed as an unsignedlong
value.static UnsignedLong
UnsignedLong. valueOf(java.lang.String string, int radix)
Returns anUnsignedLong
holding the value of the specifiedString
, parsed as an unsignedlong
value in the specified radix.static UnsignedLong
UnsignedLong. valueOf(java.math.BigInteger value)
Returns aUnsignedLong
representing the same value as the specifiedBigInteger
. -
Uses of CanIgnoreReturnValue in com.google.common.reflect
Methods in com.google.common.reflect with annotations of type CanIgnoreReturnValue Modifier and Type Method Description R
Invokable. invoke(@Nullable T receiver, java.lang.Object... args)
Invokes withreceiver
as 'this' andargs
passed to the underlying method and returns the return value; or calls the underlying constructor withargs
and returns the constructed instance.<T extends B>
ImmutableTypeToInstanceMap.Builder<B>ImmutableTypeToInstanceMap.Builder. put(TypeToken<T> key, T value)
Associateskey
withvalue
in the built map.<T extends B>
ImmutableTypeToInstanceMap.Builder<B>ImmutableTypeToInstanceMap.Builder. put(java.lang.Class<T> key, T value)
Associateskey
withvalue
in the built map.B
ImmutableTypeToInstanceMap. put(TypeToken<? extends B> key, B value)
Deprecated.unsupported operationB
MutableTypeToInstanceMap. put(TypeToken<? extends B> key, B value)
Deprecated.unsupported operation<T extends B>
TImmutableTypeToInstanceMap. putInstance(TypeToken<T> type, T value)
Deprecated.unsupported operation<T extends B>
TImmutableTypeToInstanceMap. putInstance(java.lang.Class<T> type, T value)
Deprecated.unsupported operation<T extends B>
@Nullable TMutableTypeToInstanceMap. putInstance(TypeToken<T> type, @Nullable T value)
<T extends B>
@Nullable TMutableTypeToInstanceMap. putInstance(java.lang.Class<T> type, @Nullable T value)
<T extends B>
@Nullable TTypeToInstanceMap. putInstance(TypeToken<T> type, @Nullable T value)
Maps the specified type to the specified value.<T extends B>
@Nullable TTypeToInstanceMap. putInstance(java.lang.Class<T> type, @Nullable T value)
Maps the specified class to the specified value. -
Uses of CanIgnoreReturnValue in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent with annotations of type CanIgnoreReturnValue Modifier and Type Class Description class
AbstractListeningExecutorService
AbstractListeningExecutorService
implementation that createsListenableFuture
instances for eachRunnable
andCallable
submitted to it.class
CycleDetectingLockFactory
TheCycleDetectingLockFactory
createsReentrantLock
instances andReentrantReadWriteLock
instances that detect potential deadlock by checking for cycles in lock acquisition order.class
FakeTimeLimiter
A TimeLimiter implementation which actually does not attempt to limit time at all.class
ForwardingBlockingQueue<E>
ABlockingQueue
which forwards all its method calls to anotherBlockingQueue
.class
ForwardingExecutorService
An executor service which forwards all its method calls to another executor service.class
ForwardingFuture<V>
AFuture
which forwards all its method calls to another future.class
ForwardingListenableFuture<V>
AListenableFuture
which forwards all its method calls to another future.class
ForwardingListeningExecutorService
A listening executor service which forwards all its method calls to another listening executor service.static class
Futures.FutureCombiner<V>
A helper to create a newListenableFuture
whose result is generated from a combination of input futures.class
ThreadFactoryBuilder
A ThreadFactory builder, providing any combination of these features: whether threads should be marked as daemon threads a naming format a thread priority an uncaught exception handler a backing thread factoryMethods in com.google.common.util.concurrent with annotations of type CanIgnoreReturnValue Modifier and Type Method Description long
AtomicLongMap. accumulateAndGet(K key, long x, java.util.function.LongBinaryOperator accumulatorFunction)
Updates the value currently associated withkey
by combining it withx
via the specified accumulator function, returning the new value.double
RateLimiter. acquire()
Acquires a single permit from thisRateLimiter
, blocking until the request can be granted.double
RateLimiter. acquire(int permits)
Acquires the given number of permits from thisRateLimiter
, blocking until the request can be granted.double
AtomicDouble. addAndGet(double delta)
Atomically adds the given value to the current value.double
AtomicDoubleArray. addAndGet(int i, double delta)
Atomically adds the given value to the element at indexi
.long
AtomicLongMap. addAndGet(K key, long delta)
Addsdelta
to the value currently associated withkey
, and returns the new value.static boolean
Uninterruptibles. awaitUninterruptibly(java.util.concurrent.CountDownLatch latch, long timeout, java.util.concurrent.TimeUnit unit)
Invokeslatch.
await(timeout, unit)
uninterruptibly.static boolean
Uninterruptibles. awaitUninterruptibly(java.util.concurrent.CountDownLatch latch, java.time.Duration timeout)
Invokeslatch.
await(timeout, unit)
uninterruptibly.<C> ListenableFuture<C>
Futures.FutureCombiner. call(java.util.concurrent.Callable<C> combiner, java.util.concurrent.Executor executor)
Creates theListenableFuture
which will return the result of callingCallable.call()
incombiner
when all futures complete, using the specifiedexecutor
.<T> T
SimpleTimeLimiter. callUninterruptiblyWithTimeout(java.util.concurrent.Callable<T> callable, long timeoutDuration, java.util.concurrent.TimeUnit timeoutUnit)
<T> T
TimeLimiter. callUninterruptiblyWithTimeout(java.util.concurrent.Callable<T> callable, long timeoutDuration, java.util.concurrent.TimeUnit timeoutUnit)
Invokes a specified Callable, timing out after the specified time limit.default <T> T
TimeLimiter. callUninterruptiblyWithTimeout(java.util.concurrent.Callable<T> callable, java.time.Duration timeout)
Invokes a specified Callable, timing out after the specified time limit.<T> T
SimpleTimeLimiter. callWithTimeout(java.util.concurrent.Callable<T> callable, long timeoutDuration, java.util.concurrent.TimeUnit timeoutUnit)
<T> T
TimeLimiter. callWithTimeout(java.util.concurrent.Callable<T> callable, long timeoutDuration, java.util.concurrent.TimeUnit timeoutUnit)
Invokes a specified Callable, timing out after the specified time limit.default <T> T
TimeLimiter. callWithTimeout(java.util.concurrent.Callable<T> callable, java.time.Duration timeout)
Invokes a specified Callable, timing out after the specified time limit.boolean
AbstractFuture. cancel(boolean mayInterruptIfRunning)
long
AtomicLongMap. decrementAndGet(K key)
Decrements by one the value currently associated withkey
, and returns the new value.V
AbstractFuture. get()
V
AbstractFuture. get(long timeout, java.util.concurrent.TimeUnit unit)
long
AtomicLongMap. getAndAccumulate(K key, long x, java.util.function.LongBinaryOperator accumulatorFunction)
Updates the value currently associated withkey
by combining it withx
via the specified accumulator function, returning the old value.double
AtomicDouble. getAndAdd(double delta)
Atomically adds the given value to the current value.double
AtomicDoubleArray. getAndAdd(int i, double delta)
Atomically adds the given value to the element at indexi
.long
AtomicLongMap. getAndAdd(K key, long delta)
Addsdelta
to the value currently associated withkey
, and returns the old value.long
AtomicLongMap. getAndDecrement(K key)
Decrements by one the value currently associated withkey
, and returns the old value.long
AtomicLongMap. getAndIncrement(K key)
Increments by one the value currently associated withkey
, and returns the old value.long
AtomicLongMap. getAndUpdate(K key, java.util.function.LongUnaryOperator updaterFunction)
Updates the value currently associated withkey
with the specified function, and returns the old value.static <V,X extends java.lang.Exception>
VFutures. getChecked(java.util.concurrent.Future<V> future, java.lang.Class<X> exceptionClass)
Returns the result ofFuture.get()
, converting most exceptions to a new instance of the given checked exception type.static <V,X extends java.lang.Exception>
VFutures. getChecked(java.util.concurrent.Future<V> future, java.lang.Class<X> exceptionClass, long timeout, java.util.concurrent.TimeUnit unit)
Returns the result ofFuture.get(long, TimeUnit)
, converting most exceptions to a new instance of the given checked exception type.static <V,X extends java.lang.Exception>
VFutures. getChecked(java.util.concurrent.Future<V> future, java.lang.Class<X> exceptionClass, java.time.Duration timeout)
Returns the result ofFuture.get(long, TimeUnit)
, converting most exceptions to a new instance of the given checked exception type.static <V> V
Futures. getDone(java.util.concurrent.Future<V> future)
Returns the result of the inputFuture
, which must have already completed.static <V> V
Futures. getUnchecked(java.util.concurrent.Future<V> future)
Returns the result of callingFuture.get()
uninterruptibly on a task known not to throw a checked exception.static <V> V
Uninterruptibles. getUninterruptibly(java.util.concurrent.Future<V> future)
Invokesfuture.
get()
uninterruptibly.static <V> V
Uninterruptibles. getUninterruptibly(java.util.concurrent.Future<V> future, long timeout, java.util.concurrent.TimeUnit unit)
Invokesfuture.
get(timeout, unit)
uninterruptibly.static <V> V
Uninterruptibles. getUninterruptibly(java.util.concurrent.Future<V> future, java.time.Duration timeout)
Invokesfuture.
get(timeout, unit)
uninterruptibly.long
AtomicLongMap. incrementAndGet(K key)
Increments by one the value currently associated withkey
, and returns the new value.long
AtomicLongMap. put(K key, long newValue)
AssociatesnewValue
withkey
in this map, and returns the value previously associated withkey
, or zero if there was no such value.long
AtomicLongMap. remove(K key)
Removes and returns the value associated withkey
.boolean
AtomicLongMap. removeIfZero(K key)
Atomically removekey
from the map iff its associated value is 0.protected boolean
AbstractFuture. set(@Nullable V value)
Sets the result of thisFuture
unless thisFuture
has already been cancelled or set (including set asynchronously).boolean
SettableFuture. set(@Nullable V value)
protected boolean
AbstractFuture. setException(java.lang.Throwable throwable)
Sets the failed result of thisFuture
unless thisFuture
has already been cancelled or set (including set asynchronously).boolean
SettableFuture. setException(java.lang.Throwable throwable)
protected boolean
AbstractFuture. setFuture(ListenableFuture<? extends V> future)
Sets the result of thisFuture
to match the supplied inputFuture
once the suppliedFuture
is done, unless thisFuture
has already been cancelled or set (including "set asynchronously," defined below).boolean
SettableFuture. setFuture(ListenableFuture<? extends V> future)
static boolean
MoreExecutors. shutdownAndAwaitTermination(java.util.concurrent.ExecutorService service, long timeout, java.util.concurrent.TimeUnit unit)
Shuts down the given executor service gradually, first disabling new submissions and later, if necessary, cancelling remaining tasks.static boolean
MoreExecutors. shutdownAndAwaitTermination(java.util.concurrent.ExecutorService service, java.time.Duration timeout)
Shuts down the given executor service gradually, first disabling new submissions and later, if necessary, cancelling remaining tasks.Service
AbstractExecutionThreadService. startAsync()
Service
AbstractIdleService. startAsync()
Service
AbstractScheduledService. startAsync()
Service
AbstractService. startAsync()
Service
Service. startAsync()
If the service state isService.State.NEW
, this initiates service startup and returns immediately.ServiceManager
ServiceManager. startAsync()
Initiates service startup on all the services being managed.Service
AbstractExecutionThreadService. stopAsync()
Service
AbstractIdleService. stopAsync()
Service
AbstractScheduledService. stopAsync()
Service
AbstractService. stopAsync()
Service
Service. stopAsync()
ServiceManager
ServiceManager. stopAsync()
Initiates service shutdown if necessary on all the services being managed.long
AtomicLongMap. updateAndGet(K key, java.util.function.LongUnaryOperator updaterFunction)
Updates the value currently associated withkey
with the specified function, and returns the new value.
-