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.ToStringHelperMoreObjects.ToStringHelper. add(java.lang.String name, boolean value)Adds a name/value pair to the formatted output inname=valueformat.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. add(java.lang.String name, char value)Adds a name/value pair to the formatted output inname=valueformat.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. add(java.lang.String name, double value)Adds a name/value pair to the formatted output inname=valueformat.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. add(java.lang.String name, float value)Adds a name/value pair to the formatted output inname=valueformat.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. add(java.lang.String name, int value)Adds a name/value pair to the formatted output inname=valueformat.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. add(java.lang.String name, long value)Adds a name/value pair to the formatted output inname=valueformat.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. add(java.lang.String name, @Nullable java.lang.Object value)Adds a name/value pair to the formatted output inname=valueformat.Objects.ToStringHelperObjects.ToStringHelper. add(java.lang.String name, boolean value)Deprecated.Adds a name/value pair to the formatted output inname=valueformat.Objects.ToStringHelperObjects.ToStringHelper. add(java.lang.String name, char value)Deprecated.Adds a name/value pair to the formatted output inname=valueformat.Objects.ToStringHelperObjects.ToStringHelper. add(java.lang.String name, double value)Deprecated.Adds a name/value pair to the formatted output inname=valueformat.Objects.ToStringHelperObjects.ToStringHelper. add(java.lang.String name, float value)Deprecated.Adds a name/value pair to the formatted output inname=valueformat.Objects.ToStringHelperObjects.ToStringHelper. add(java.lang.String name, int value)Deprecated.Adds a name/value pair to the formatted output inname=valueformat.Objects.ToStringHelperObjects.ToStringHelper. add(java.lang.String name, long value)Deprecated.Adds a name/value pair to the formatted output inname=valueformat.Objects.ToStringHelperObjects.ToStringHelper. add(java.lang.String name, @Nullable java.lang.Object value)Deprecated.Adds a name/value pair to the formatted output inname=valueformat.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. addValue(boolean value)Adds an unnamed value to the formatted output.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. addValue(char value)Adds an unnamed value to the formatted output.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. addValue(double value)Adds an unnamed value to the formatted output.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. addValue(float value)Adds an unnamed value to the formatted output.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. addValue(int value)Adds an unnamed value to the formatted output.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. addValue(long value)Adds an unnamed value to the formatted output.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. addValue(@Nullable java.lang.Object value)Adds an unnamed value to the formatted output.Objects.ToStringHelperObjects.ToStringHelper. addValue(boolean value)Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelperObjects.ToStringHelper. addValue(char value)Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelperObjects.ToStringHelper. addValue(double value)Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelperObjects.ToStringHelper. addValue(float value)Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelperObjects.ToStringHelper. addValue(int value)Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelperObjects.ToStringHelper. addValue(long value)Deprecated.Adds an unnamed value to the formatted output.Objects.ToStringHelperObjects.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 toappendablethe 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.StringBuilderJoiner. appendTo(java.lang.StringBuilder builder, @Nullable java.lang.Object first, @Nullable java.lang.Object second, java.lang.Object... rest)Appends tobuilderthe string representation of each of the remaining arguments.java.lang.StringBuilderJoiner. 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.StringBuilderJoiner. 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.StringBuilderJoiner. 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.StringBuilderJoiner.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.StringBuilderJoiner.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.StringBuilderJoiner.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 BConverter. apply(@Nullable A a)Deprecated.Provided to satisfy theFunctioninterface; useConverter.convert(A)instead.@Nullable TFunction. apply(@Nullable F input)booleanPredicate. apply(@Nullable T input)Returns the result of applying this predicate toinput(Java 8 users, see notes in the class documentation above).static intPreconditions. checkElementIndex(int index, int size)Ensures thatindexspecifies a valid element in an array, list or string of sizesize.static intPreconditions. checkElementIndex(int index, int size, @Nullable java.lang.String desc)Ensures thatindexspecifies 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 intPreconditions. checkPositionIndex(int index, int size)Ensures thatindexspecifies a valid position in an array, list or string of sizesize.static intPreconditions. checkPositionIndex(int index, int size, @Nullable java.lang.String desc)Ensures thatindexspecifies a valid position in an array, list or string of sizesize.@Nullable BConverter. convert(@Nullable A a)Returns a representation ofaas an instance of typeB.java.lang.Iterable<B>Converter. convertAll(java.lang.Iterable<? extends A> fromIterable)Returns an iterable that appliesconvertto each element offromIterable.TSupplier. get()Retrieves an instance of the appropriate type.MoreObjects.ToStringHelperMoreObjects.ToStringHelper. omitNullValues()Configures theMoreObjects.ToStringHelpersoMoreObjects.ToStringHelper.toString()will ignore properties with null value.Objects.ToStringHelperObjects.ToStringHelper. omitNullValues()Deprecated.Configures theObjects.ToStringHelpersoObjects.ToStringHelper.toString()will ignore properties with null value.static java.lang.RuntimeExceptionThrowables. propagate(java.lang.Throwable throwable)Deprecated.Usethrow eorthrow new RuntimeException(e)directly, or use a combination ofThrowables.throwIfUnchecked(java.lang.Throwable)andthrow new RuntimeException(e).StopwatchStopwatch. 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.StopwatchStopwatch. start()Starts the stopwatch.StopwatchStopwatch. stop()Stops the stopwatch.static <T> TVerify. verifyNotNull(@Nullable T reference)Ensures thatreferenceis non-null, throwing aVerifyExceptionwith a default message otherwise.static <T> TVerify. verifyNotNull(@Nullable T reference, @Nullable java.lang.String errorMessageTemplate, @Nullable java.lang.Object @Nullable ... errorMessageArgs)Ensures thatreferenceis non-null, throwing aVerifyExceptionwith 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 intConcurrentHashMultiset. add(E element, int occurrences)Adds a number of occurrences of the specified element to this multiset.intEnumMultiset. add(E element, int occurrences)booleanEvictingQueue. add(E e)Adds the given element to this queue.booleanForwardingCollection. add(E element)intForwardingMultiset. add(E element, int occurrences)booleanImmutableCollection. add(E e)Deprecated.Unsupported operation.abstract ImmutableCollection.Builder<E>ImmutableCollection.Builder. add(E element)Addselementto theImmutableCollectionbeing built.ImmutableCollection.Builder<E>ImmutableCollection.Builder. add(E... elements)Adds each element ofelementsto theImmutableCollectionbeing built.ImmutableList.Builder<E>ImmutableList.Builder. add(E element)Addselementto theImmutableList.ImmutableList.Builder<E>ImmutableList.Builder. add(E... elements)Adds each element ofelementsto theImmutableList.intImmutableMultiset. add(E element, int occurrences)Deprecated.Unsupported operation.ImmutableMultiset.Builder<E>ImmutableMultiset.Builder. add(E element)Addselementto theImmutableMultiset.ImmutableMultiset.Builder<E>ImmutableMultiset.Builder. add(E... elements)Adds each element ofelementsto 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)Addselementto theImmutableSortedMultiset.ImmutableSortedMultiset.Builder<E>ImmutableSortedMultiset.Builder. add(E... elements)Adds each element ofelementsto theImmutableSortedMultiset.ImmutableSortedSet.Builder<E>ImmutableSortedSet.Builder. add(E element)Addselementto theImmutableSortedSet.ImmutableSortedSet.Builder<E>ImmutableSortedSet.Builder. add(E... elements)Adds each element ofelementsto theImmutableSortedSet, ignoring duplicate elements (only the first duplicate element is added).booleanMinMaxPriorityQueue. add(E element)Adds the given element to this queue.intMultiset. add(@Nullable E element, int occurrences)Adds a number of occurrences of an element to this multiset.booleanMultiset. add(E element)Adds a single occurrence of the specified element to this multiset.booleanSets.SetView. add(E e)Deprecated.Unsupported operation.intTreeMultiset. add(@Nullable E element, int occurrences)booleanEvictingQueue. addAll(java.util.Collection<? extends E> collection)booleanForwardingCollection. addAll(java.util.Collection<? extends E> collection)booleanForwardingList. addAll(int index, java.util.Collection<? extends E> elements)booleanImmutableCollection. 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 ofelementsto theImmutableCollectionbeing built.ImmutableCollection.Builder<E>ImmutableCollection.Builder. addAll(java.util.Iterator<? extends E> elements)Adds each element ofelementsto theImmutableCollectionbeing built.booleanImmutableList. 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 ofelementsto theImmutableList.ImmutableList.Builder<E>ImmutableList.Builder. addAll(java.util.Iterator<? extends E> elements)Adds each element ofelementsto theImmutableList.ImmutableMultiset.Builder<E>ImmutableMultiset.Builder. addAll(java.lang.Iterable<? extends E> elements)Adds each element ofelementsto theImmutableMultiset.ImmutableMultiset.Builder<E>ImmutableMultiset.Builder. addAll(java.util.Iterator<? extends E> elements)Adds each element ofelementsto 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 ofelementsto theImmutableSortedMultiset.ImmutableSortedMultiset.Builder<E>ImmutableSortedMultiset.Builder. addAll(java.util.Iterator<? extends E> elements)Adds each element ofelementsto theImmutableSortedMultiset.ImmutableSortedSet.Builder<E>ImmutableSortedSet.Builder. addAll(java.lang.Iterable<? extends E> elements)Adds each element ofelementsto 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 ofelementsto theImmutableSortedSet, ignoring duplicate elements (only the first duplicate element is added).static <T> booleanIterables. addAll(java.util.Collection<T> addTo, java.lang.Iterable<? extends T> elementsToAdd)Adds all elements initerabletocollection.static <T> booleanIterators. addAll(java.util.Collection<T> addTo, java.util.Iterator<? extends T> iterator)Adds all elements initeratortocollection.booleanMinMaxPriorityQueue. addAll(java.util.Collection<? extends E> newElements)booleanSets.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 intIterators. advance(java.util.Iterator<?> iterator, int numberToAdvance)Callsnext()oniterator, eithernumberToAdvancetimes or untilhasNext()returnsfalse, whichever comes first.abstract intOrdering. compare(@Nullable T left, @Nullable T right)MapMakerMapMaker. concurrencyLevel(int concurrencyLevel)Guides the allowed concurrency among update operations.static booleanMultisets. containsOccurrences(Multiset<?> superMultiset, Multiset<?> subMultiset)ReturnstrueifsubMultiset.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> intQueues. 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 requestednumElementselements are not available, it will wait for them up to the specified timeout.static <E> intQueues. 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 requestednumElementselements are not available, it will wait for them up to the specified timeout.static <E> intQueues. 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> intQueues. 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 TAbstractIterator. endOfData()Implementations ofAbstractIterator.computeNext()must invoke this method when there are no elements left in the iteration.VArrayTable. erase(@Nullable java.lang.Object rowKey, @Nullable java.lang.Object columnKey)Associates the valuenullwith 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 VBiMap. forcePut(@Nullable K key, @Nullable V value)An alternate form ofputthat silently removes any existing entry with the valuevaluebefore proceeding with theBiMap.put(K, V)operation.VEnumHashBiMap. forcePut(K key, @Nullable V value)@Nullable VHashBiMap. forcePut(@Nullable K key, @Nullable V value)VImmutableBiMap. forcePut(K key, V value)Deprecated.Unsupported operation.booleanAbstractIterator. hasNext()MapMakerMapMaker. initialCapacity(int initialCapacity)Sets the minimum total size for the internal hash tables.EInterner. 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 insourceintodest, with its key and value reversed.MinMaxPriorityQueue.Builder<B>MinMaxPriorityQueue.Builder. maximumSize(int maximumSize)Configures this builder to buildMinMaxPriorityQueueinstances that are limited tomaximumSizeelements.CDiscreteDomain. maxValue()Returns the maximum value of typeC, if it has one.CDiscreteDomain. minValue()Returns the minimum value of typeC, if it has one.TAbstractIterator. next()TForwardingIterator. next()EPeekingIterator. next()booleanEvictingQueue. offer(E e)Adds the given element to this queue.booleanForwardingQueue. offer(E o)booleanMinMaxPriorityQueue. offer(E element)Adds the given element to this queue.booleanForwardingDeque. offerFirst(E e)booleanForwardingDeque. 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 thisBuilderto order entries by value according to the specified comparator.ImmutableMap.Builder<K,V>ImmutableMap.Builder. orderEntriesByValue(java.util.Comparator<? super V> valueComparator)Configures thisBuilderto 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.EForwardingQueue. poll()EMinMaxPriorityQueue. poll()EForwardingDeque. pollFirst()EImmutableSortedSet. pollFirst()Deprecated.Unsupported operation.EMinMaxPriorityQueue. pollFirst()Removes and returns the least element of this queue, or returnsnullif the queue is empty.java.util.Map.Entry<K,V>ImmutableSortedMap. pollFirstEntry()Deprecated.Unsupported operation.Multiset.Entry<E>ImmutableSortedMultiset. pollFirstEntry()Deprecated.Unsupported operation.EForwardingDeque. pollLast()EImmutableSortedSet. pollLast()Deprecated.Unsupported operation.EMinMaxPriorityQueue. pollLast()Removes and returns the greatest element of this queue, or returnsnullif the queue is empty.java.util.Map.Entry<K,V>ImmutableSortedMap. pollLastEntry()Deprecated.Unsupported operation.Multiset.Entry<E>ImmutableSortedMultiset. pollLastEntry()Deprecated.Unsupported operation.EForwardingDeque. pop()EForwardingListIterator. previous()VArrayTable. put(R rowKey, C columnKey, @Nullable V value)Associates the specified value with the specified keys.@Nullable VBiMap. put(@Nullable K key, @Nullable V value)VEnumHashBiMap. put(K key, @Nullable V value)VForwardingMap. put(K key, V value)booleanForwardingMultimap. put(K key, V value)VForwardingTable. put(R rowKey, C columnKey, V value)VHashBiMap. 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 givenentryto the bimap.ImmutableBiMap.Builder<K,V>ImmutableBiMap.Builder. put(K key, V value)Associateskeywithvaluein the built bimap.<T extends B>
ImmutableClassToInstanceMap.Builder<B>ImmutableClassToInstanceMap.Builder. put(java.lang.Class<T> key, T value)Associateskeywithvaluein 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 givenentryto the map, making it immutable if necessary.ImmutableMap.Builder<K,V>ImmutableMap.Builder. put(K key, V value)Associateskeywithvaluein the built map.VImmutableMap. 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.booleanImmutableMultimap. 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 givenentryto the map, making it immutable if necessary.ImmutableSortedMap.Builder<K,V>ImmutableSortedMap.Builder. put(K key, V value)Associateskeywithvaluein the built map.ImmutableTable.Builder<R,C,V>ImmutableTable.Builder. put(Table.Cell<? extends R,? extends C,? extends V> cell)Adds the givencellto 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 withvaluein the built table.VImmutableTable. put(R rowKey, C columnKey, V value)Deprecated.Unsupported operation.booleanLinkedListMultimap. put(@Nullable K key, @Nullable V value)Stores a key-value pair in the multimap.booleanMultimap. put(@Nullable K key, @Nullable V value)Stores a key-value pair in this multimap.BMutableClassToInstanceMap. put(java.lang.Class<? extends B> key, B value)@Nullable VTable. put(R rowKey, C columnKey, V value)Associates the specified value with the specified keys.booleanForwardingMultimap. putAll(Multimap<? extends K,? extends V> multimap)booleanForwardingMultimap. 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'skeys 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.booleanImmutableMultimap. putAll(Multimap<? extends K,? extends V> multimap)Deprecated.Unsupported operation.booleanImmutableMultimap. 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.booleanMultimap. 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.booleanMultimap. putAll(Multimap<? extends K,? extends V> multimap)Stores all key-value pairs ofmultimapin this multimap, in the order returned bymultimap.entries().VForwardingConcurrentMap. putIfAbsent(K key, V value)VImmutableMap. 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)VArrayTable. remove(java.lang.Object rowKey, java.lang.Object columnKey)Deprecated.intConcurrentHashMultiset. remove(@Nullable java.lang.Object element, int occurrences)Removes a number of occurrences of the specified element from this multiset.intEnumMultiset. remove(@Nullable java.lang.Object element, int occurrences)booleanEvictingQueue. remove(java.lang.Object object)booleanForwardingCollection. remove(java.lang.Object object)booleanForwardingConcurrentMap. remove(java.lang.Object key, java.lang.Object value)EForwardingList. remove(int index)VForwardingMap. remove(java.lang.Object object)booleanForwardingMultimap. remove(@Nullable java.lang.Object key, @Nullable java.lang.Object value)intForwardingMultiset. remove(java.lang.Object element, int occurrences)EForwardingQueue. remove()VForwardingTable. remove(java.lang.Object rowKey, java.lang.Object columnKey)VHashBasedTable. remove(@Nullable java.lang.Object rowKey, @Nullable java.lang.Object columnKey)@Nullable VHashBiMap. remove(@Nullable java.lang.Object key)booleanImmutableCollection. remove(java.lang.Object object)Deprecated.Unsupported operation.EImmutableList. remove(int index)Deprecated.Unsupported operation.booleanImmutableMultimap. remove(java.lang.Object key, java.lang.Object value)Deprecated.Unsupported operation.intImmutableMultiset. remove(java.lang.Object element, int occurrences)Deprecated.Unsupported operation.VImmutableTable. remove(java.lang.Object rowKey, java.lang.Object columnKey)Deprecated.Unsupported operation.booleanMultimap. remove(@Nullable java.lang.Object key, @Nullable java.lang.Object value)Removes a single key-value pair with the keykeyand the valuevaluefrom this multimap, if such exists.booleanMultiset. remove(@Nullable java.lang.Object element)Removes a single occurrence of the specified element from this multiset, if present.intMultiset. remove(@Nullable java.lang.Object element, int occurrences)Removes a number of occurrences of the specified element from this multiset.booleanSets.SetView. remove(java.lang.Object object)Deprecated.Unsupported operation.@Nullable VTable. remove(@Nullable java.lang.Object rowKey, @Nullable java.lang.Object columnKey)Removes the mapping, if any, associated with the given keys.intTreeMultiset. remove(@Nullable java.lang.Object element, int occurrences)booleanForwardingCollection. 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)booleanImmutableCollection. 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 booleanIterables. removeAll(java.lang.Iterable<?> removeFrom, java.util.Collection<?> elementsToRemove)Removes, from an iterable, every element that belongs to the provided collection.static booleanIterators. 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.booleanMultiset. removeAll(java.util.Collection<?> c)java.util.Set<V>SetMultimap. removeAll(@Nullable java.lang.Object key)Removes all values associated with the keykey.booleanSets.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.booleanConcurrentHashMultiset. 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.EForwardingDeque. removeFirst()EMinMaxPriorityQueue. removeFirst()Removes and returns the least element of this queue.booleanForwardingDeque. removeFirstOccurrence(java.lang.Object o)booleanImmutableCollection. removeIf(java.util.function.Predicate<? super E> filter)Deprecated.Unsupported operation.static <T> booleanIterables. removeIf(java.lang.Iterable<T> removeFrom, Predicate<? super T> predicate)Removes, from an iterable, every element that satisfies the provided predicate.static <T> booleanIterators. removeIf(java.util.Iterator<T> removeFrom, Predicate<? super T> predicate)Removes every element that satisfies the provided predicate from the iterator.booleanSets.SetView. removeIf(java.util.function.Predicate<? super E> filter)Deprecated.Unsupported operation.EForwardingDeque. removeLast()EMinMaxPriorityQueue. removeLast()Removes and returns the greatest element of this queue.booleanForwardingDeque. removeLastOccurrence(java.lang.Object o)static booleanMultisets. removeOccurrences(Multiset<?> multisetToModify, Multiset<?> occurrencesToRemove)For each occurrence of an elementeinoccurrencesToRemove, removes one occurrence ofeinmultisetToModify.static booleanMultisets. removeOccurrences(Multiset<?> multisetToModify, java.lang.Iterable<?> occurrencesToRemove)For each occurrence of an elementeinoccurrencesToRemove, removes one occurrence ofeinmultisetToModify.VForwardingConcurrentMap. replace(K key, V value)booleanForwardingConcurrentMap. 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.booleanForwardingCollection. retainAll(java.util.Collection<?> collection)static booleanIterables. retainAll(java.lang.Iterable<?> removeFrom, java.util.Collection<?> elementsToRetain)Removes, from an iterable, every element that does not belong to the provided collection.static booleanIterators. retainAll(java.util.Iterator<?> removeFrom, java.util.Collection<?> elementsToRetain)Traverses an iterator and removes every element that does not belong to the provided collection.booleanMultiset. retainAll(java.util.Collection<?> c)booleanSets.SetView. retainAll(java.util.Collection<?> elementsToKeep)Deprecated.Unsupported operation.static booleanMultisets. retainOccurrences(Multiset<?> multisetToModify, Multiset<?> multisetToRetain)ModifiesmultisetToModifyso that its count for an elementeis at mostmultisetToRetain.count(e).VArrayTable. set(int rowIndex, int columnIndex, @Nullable V value)Associatesvaluewith the specified row and column indices.EForwardingList. set(int index, E element)EImmutableList. set(int index, E element)Deprecated.Unsupported operation.intConcurrentHashMultiset. setCount(E element, int count)Adds or removes occurrences ofelementsuch that theConcurrentHashMultiset.count(java.lang.Object)of the element becomescount.booleanConcurrentHashMultiset. setCount(E element, int expectedOldCount, int newCount)Sets the number of occurrences ofelementtonewCount, but only if the count is currentlyexpectedOldCount.intEnumMultiset. setCount(E element, int count)intForwardingMultiset. setCount(E element, int count)booleanForwardingMultiset. 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.intImmutableMultiset. setCount(E element, int count)Deprecated.Unsupported operation.booleanImmutableMultiset. 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.intMultiset. setCount(E element, int count)Adds or removes the necessary occurrences of an element such that the element attains the desired count.booleanMultiset. 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.intTreeMultiset. setCount(@Nullable E element, int count)booleanTreeMultiset. 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.MapMakerMapMaker. weakKeys()Specifies that each key (not value) stored in the map should be wrapped in aWeakReference(by default, strong references are used).MapMakerMapMaker. 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 CharEscaperBuilderCharEscaperBuilder. addEscape(char c, java.lang.String r)Add a new mapping from an index to an object to the escaping.Escapers.BuilderEscapers.Builder. addEscape(char c, java.lang.String replacement)Adds a replacement string for the given input character.CharEscaperBuilderCharEscaperBuilder. addEscapes(char[] cs, java.lang.String r)Add multiple mappings at once for a particular index.Escapers.BuilderEscapers.Builder. setSafeRange(char safeMin, char safeMax)Sets the safe range of characters for the escaper.Escapers.BuilderEscapers.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)Addsedgeconnectingendpoints.ImmutableNetwork.Builder<N,E>ImmutableNetwork.Builder. addEdge(N nodeU, N nodeV, E edge)AddsedgeconnectingnodeUtonodeV.booleanMutableNetwork. addEdge(EndpointPair<N> endpoints, E edge)Addsedgeconnectingendpoints.booleanMutableNetwork. addEdge(N nodeU, N nodeV, E edge)AddsedgeconnectingnodeUtonodeV.ImmutableGraph.Builder<N>ImmutableGraph.Builder. addNode(N node)Addsnodeif it is not already present.ImmutableNetwork.Builder<N,E>ImmutableNetwork.Builder. addNode(N node)Addsnodeif it is not already present.ImmutableValueGraph.Builder<N,V>ImmutableValueGraph.Builder. addNode(N node)Addsnodeif it is not already present.booleanMutableGraph. addNode(N node)Addsnodeif it is not already present.booleanMutableNetwork. addNode(N node)Addsnodeif it is not already present.booleanMutableValueGraph. addNode(N node)Addsnodeif 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 connectingnodeUtonodeVif one is not already present.booleanMutableGraph. putEdge(EndpointPair<N> endpoints)Adds an edge connectingendpoints(in the order, if any, specified byendpoints) if one is not already present.booleanMutableGraph. putEdge(N nodeU, N nodeV)Adds an edge connectingnodeUtonodeVif one is not already present.ImmutableValueGraph.Builder<N,V>ImmutableValueGraph.Builder. putEdgeValue(EndpointPair<N> endpoints, V value)Adds an edge connectingendpointsif 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 connectingnodeUtonodeVif one is not already present, and sets a value for that edge tovalue(overwriting the existing value, if any).VMutableValueGraph. putEdgeValue(EndpointPair<N> endpoints, V value)Adds an edge connectingendpointsif one is not already present, and sets a value for that edge tovalue(overwriting the existing value, if any).VMutableValueGraph. putEdgeValue(N nodeU, N nodeV, V value)Adds an edge connectingnodeUtonodeVif one is not already present, and sets a value for that edge tovalue(overwriting the existing value, if any).booleanMutableGraph. removeEdge(EndpointPair<N> endpoints)Removes the edge connectingendpoints, if it is present.booleanMutableGraph. removeEdge(N nodeU, N nodeV)Removes the edge connectingnodeUtonodeV, if it is present.booleanMutableNetwork. removeEdge(E edge)Removesedgefrom this network, if it is present.VMutableValueGraph. removeEdge(EndpointPair<N> endpoints)Removes the edge connectingendpoints, if it is present.VMutableValueGraph. removeEdge(N nodeU, N nodeV)Removes the edge connectingnodeUtonodeV, if it is present.booleanMutableGraph. removeNode(N node)Removesnodeif it is present; all edges incident tonodewill also be removed.booleanMutableNetwork. removeNode(N node)Removesnodeif it is present; all edges incident tonodewill also be removed.booleanMutableValueGraph. removeNode(N node)Removesnodeif it is present; all edges incident tonodewill 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 interfaceHasherAPrimitiveSinkthat can compute a hash code after reading the input.interfacePrimitiveSinkAn 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 booleanBloomFilter. put(T object)Puts an element into thisBloomFilter.intHashingInputStream. read()Reads the next byte of data from the underlying input stream and updates the hasher with the byte read.intHashingInputStream. 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.intHashCode. 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 longByteStreams. copy(java.io.InputStream from, java.io.OutputStream to)Copies all bytes from the input stream to the output stream.static longByteStreams. copy(java.nio.channels.ReadableByteChannel from, java.nio.channels.WritableByteChannel to)Copies all bytes from the readable channel to the writable channel.static longCharStreams. copy(java.lang.Readable from, java.lang.Appendable to)Copies all characters between theReadableandAppendableobjects.longByteSource. copyTo(ByteSink sink)Copies the contents of this byte source to the givenByteSink.longByteSource. copyTo(java.io.OutputStream output)Copies the contents of this byte source to the givenOutputStream.longCharSource. copyTo(CharSink sink)Copies the contents of this source to the given sink.longCharSource. copyTo(java.lang.Appendable appendable)Appends the contents of this source to the givenAppendable(such as aWriter).static longByteStreams. exhaust(java.io.InputStream in)Reads and discards data from the givenInputStreamuntil the end of the stream is reached.static longCharStreams. exhaust(java.lang.Readable readable)Reads and discards data from the givenReadableuntil the end of the stream is reached.static java.net.URLResources. getResource(java.lang.Class<?> contextClass, java.lang.String resourceName)Given aresourceNamethat is relative tocontextClass, returns aURLpointing to the named resource.static java.net.URLResources. getResource(java.lang.String resourceName)Returns aURLpointing toresourceNameif the resource is found using the context class loader.booleanByteProcessor. processBytes(byte[] buf, int off, int len)This method will be called for each chunk of bytes in an input stream.booleanLineProcessor. processLine(java.lang.String line)This method will be called once for each line.<T> TByteSource. read(ByteProcessor<T> processor)Reads the contents of this byte source using the givenprocessorto process bytes as they are read.static intByteStreams. 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.booleanByteArrayDataInput. readBoolean()booleanLittleEndianDataInputStream. readBoolean()byteByteArrayDataInput. readByte()byteLittleEndianDataInputStream. readByte()static <T> TByteStreams. readBytes(java.io.InputStream input, ByteProcessor<T> processor)Process the bytes of the given input stream using the given processor.static <T> TFiles. readBytes(java.io.File file, ByteProcessor<T> processor)Deprecated.PreferasByteSource(file).read(processor).charByteArrayDataInput. readChar()charLittleEndianDataInputStream. readChar()Reads a char as specified byDataInputStream.readChar(), except using little-endian byte order.doubleByteArrayDataInput. readDouble()doubleLittleEndianDataInputStream. readDouble()Reads adoubleas specified byDataInputStream.readDouble(), except using little-endian byte order.floatByteArrayDataInput. readFloat()floatLittleEndianDataInputStream. readFloat()Reads afloatas specified byDataInputStream.readFloat(), except using little-endian byte order.intByteArrayDataInput. readInt()intLittleEndianDataInputStream. readInt()Reads an integer as specified byDataInputStream.readInt(), except using little-endian byte order.java.lang.StringByteArrayDataInput. readLine()java.lang.StringLineReader. readLine()Reads a line of text.java.lang.StringLittleEndianDataInputStream. readLine()This method will throw anUnsupportedOperationException.<T> TCharSource. readLines(LineProcessor<T> processor)Reads lines of text from this source, processing each line as it is read using the givenprocessor.static <T> TCharStreams. readLines(java.lang.Readable readable, LineProcessor<T> processor)Streams lines from aReadableobject, stopping when the processor returnsfalseor all lines have been read and returning the result produced by the processor.static <T> TFiles. readLines(java.io.File file, java.nio.charset.Charset charset, LineProcessor<T> callback)Deprecated.PreferasCharSource(file, charset).readLines(callback).static <T> TResources. 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.longByteArrayDataInput. readLong()longLittleEndianDataInputStream. readLong()Reads alongas specified byDataInputStream.readLong(), except using little-endian byte order.shortByteArrayDataInput. readShort()shortLittleEndianDataInputStream. readShort()Reads ashortas specified byDataInputStream.readShort(), except using little-endian byte order.intByteArrayDataInput. readUnsignedByte()intLittleEndianDataInputStream. readUnsignedByte()intByteArrayDataInput. readUnsignedShort()intLittleEndianDataInputStream. readUnsignedShort()Reads an unsignedshortas specified byDataInputStream.readUnsignedShort(), except using little-endian byte order.java.lang.StringByteArrayDataInput. readUTF()java.lang.StringLittleEndianDataInputStream. readUTF()<C extends java.io.Closeable>
CCloser. register(@Nullable C closeable)longByteSink. writeFrom(java.io.InputStream input)Writes all the bytes from the givenInputStreamto this sink.longCharSink. 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 classImmutableDoubleArray.BuilderA builder forImmutableDoubleArrayinstances; obtained usingImmutableDoubleArray.builder(int).static classImmutableIntArray.BuilderA builder forImmutableIntArrayinstances; obtained usingImmutableIntArray.builder(int).static classImmutableLongArray.BuilderA builder forImmutableLongArrayinstances; obtained usingImmutableLongArray.builder(int).Methods in com.google.common.primitives with annotations of type CanIgnoreReturnValue Modifier and Type Method Description static byteUnsignedBytes. checkedCast(long value)Returns thebytevalue that, when treated as unsigned, is equal tovalue, if possible.static intUnsignedInts. decode(java.lang.String stringValue)Returns the unsignedintvalue represented by the given string.static longUnsignedLongs. decode(java.lang.String stringValue)Returns the unsignedlongvalue represented by the given string.static byteUnsignedBytes. parseUnsignedByte(java.lang.String string)Returns the unsignedbytevalue represented by the given decimal string.static byteUnsignedBytes. parseUnsignedByte(java.lang.String string, int radix)Returns the unsignedbytevalue represented by a string with the given radix.static intUnsignedInts. parseUnsignedInt(java.lang.String s)Returns the unsignedintvalue represented by the given decimal string.static intUnsignedInts. parseUnsignedInt(java.lang.String string, int radix)Returns the unsignedintvalue represented by a string with the given radix.static longUnsignedLongs. parseUnsignedLong(java.lang.String string)Returns the unsignedlongvalue represented by the given decimal string.static longUnsignedLongs. parseUnsignedLong(java.lang.String string, int radix)Returns the unsignedlongvalue represented by a string with the given radix.static UnsignedLongUnsignedLong. valueOf(long value)Returns anUnsignedLongrepresenting the same value as the specifiedlong.static UnsignedLongUnsignedLong. valueOf(java.lang.String string)Returns anUnsignedLongholding the value of the specifiedString, parsed as an unsignedlongvalue.static UnsignedLongUnsignedLong. valueOf(java.lang.String string, int radix)Returns anUnsignedLongholding the value of the specifiedString, parsed as an unsignedlongvalue in the specified radix.static UnsignedLongUnsignedLong. valueOf(java.math.BigInteger value)Returns aUnsignedLongrepresenting 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 RInvokable. invoke(@Nullable T receiver, java.lang.Object... args)Invokes withreceiveras 'this' andargspassed to the underlying method and returns the return value; or calls the underlying constructor withargsand returns the constructed instance.<T extends B>
ImmutableTypeToInstanceMap.Builder<B>ImmutableTypeToInstanceMap.Builder. put(TypeToken<T> key, T value)Associateskeywithvaluein the built map.<T extends B>
ImmutableTypeToInstanceMap.Builder<B>ImmutableTypeToInstanceMap.Builder. put(java.lang.Class<T> key, T value)Associateskeywithvaluein the built map.BImmutableTypeToInstanceMap. put(TypeToken<? extends B> key, B value)Deprecated.unsupported operationBMutableTypeToInstanceMap. 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 classAbstractListeningExecutorServiceAbstractListeningExecutorServiceimplementation that createsListenableFutureinstances for eachRunnableandCallablesubmitted to it.classCycleDetectingLockFactoryTheCycleDetectingLockFactorycreatesReentrantLockinstances andReentrantReadWriteLockinstances that detect potential deadlock by checking for cycles in lock acquisition order.classFakeTimeLimiterA TimeLimiter implementation which actually does not attempt to limit time at all.classForwardingBlockingQueue<E>ABlockingQueuewhich forwards all its method calls to anotherBlockingQueue.classForwardingExecutorServiceAn executor service which forwards all its method calls to another executor service.classForwardingFuture<V>AFuturewhich forwards all its method calls to another future.classForwardingListenableFuture<V>AListenableFuturewhich forwards all its method calls to another future.classForwardingListeningExecutorServiceA listening executor service which forwards all its method calls to another listening executor service.static classFutures.FutureCombiner<V>A helper to create a newListenableFuturewhose result is generated from a combination of input futures.classThreadFactoryBuilderA 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 longAtomicLongMap. accumulateAndGet(K key, long x, java.util.function.LongBinaryOperator accumulatorFunction)Updates the value currently associated withkeyby combining it withxvia the specified accumulator function, returning the new value.doubleRateLimiter. acquire()Acquires a single permit from thisRateLimiter, blocking until the request can be granted.doubleRateLimiter. acquire(int permits)Acquires the given number of permits from thisRateLimiter, blocking until the request can be granted.doubleAtomicDouble. addAndGet(double delta)Atomically adds the given value to the current value.doubleAtomicDoubleArray. addAndGet(int i, double delta)Atomically adds the given value to the element at indexi.longAtomicLongMap. addAndGet(K key, long delta)Addsdeltato the value currently associated withkey, and returns the new value.static booleanUninterruptibles. awaitUninterruptibly(java.util.concurrent.CountDownLatch latch, long timeout, java.util.concurrent.TimeUnit unit)Invokeslatch.await(timeout, unit)uninterruptibly.static booleanUninterruptibles. 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 theListenableFuturewhich will return the result of callingCallable.call()incombinerwhen all futures complete, using the specifiedexecutor.<T> TSimpleTimeLimiter. callUninterruptiblyWithTimeout(java.util.concurrent.Callable<T> callable, long timeoutDuration, java.util.concurrent.TimeUnit timeoutUnit)<T> TTimeLimiter. 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> TTimeLimiter. callUninterruptiblyWithTimeout(java.util.concurrent.Callable<T> callable, java.time.Duration timeout)Invokes a specified Callable, timing out after the specified time limit.<T> TSimpleTimeLimiter. callWithTimeout(java.util.concurrent.Callable<T> callable, long timeoutDuration, java.util.concurrent.TimeUnit timeoutUnit)<T> TTimeLimiter. 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> TTimeLimiter. callWithTimeout(java.util.concurrent.Callable<T> callable, java.time.Duration timeout)Invokes a specified Callable, timing out after the specified time limit.booleanAbstractFuture. cancel(boolean mayInterruptIfRunning)longAtomicLongMap. decrementAndGet(K key)Decrements by one the value currently associated withkey, and returns the new value.VAbstractFuture. get()VAbstractFuture. get(long timeout, java.util.concurrent.TimeUnit unit)longAtomicLongMap. getAndAccumulate(K key, long x, java.util.function.LongBinaryOperator accumulatorFunction)Updates the value currently associated withkeyby combining it withxvia the specified accumulator function, returning the old value.doubleAtomicDouble. getAndAdd(double delta)Atomically adds the given value to the current value.doubleAtomicDoubleArray. getAndAdd(int i, double delta)Atomically adds the given value to the element at indexi.longAtomicLongMap. getAndAdd(K key, long delta)Addsdeltato the value currently associated withkey, and returns the old value.longAtomicLongMap. getAndDecrement(K key)Decrements by one the value currently associated withkey, and returns the old value.longAtomicLongMap. getAndIncrement(K key)Increments by one the value currently associated withkey, and returns the old value.longAtomicLongMap. getAndUpdate(K key, java.util.function.LongUnaryOperator updaterFunction)Updates the value currently associated withkeywith 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> VFutures. getDone(java.util.concurrent.Future<V> future)Returns the result of the inputFuture, which must have already completed.static <V> VFutures. 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> VUninterruptibles. getUninterruptibly(java.util.concurrent.Future<V> future)Invokesfuture.get()uninterruptibly.static <V> VUninterruptibles. getUninterruptibly(java.util.concurrent.Future<V> future, long timeout, java.util.concurrent.TimeUnit unit)Invokesfuture.get(timeout, unit)uninterruptibly.static <V> VUninterruptibles. getUninterruptibly(java.util.concurrent.Future<V> future, java.time.Duration timeout)Invokesfuture.get(timeout, unit)uninterruptibly.longAtomicLongMap. incrementAndGet(K key)Increments by one the value currently associated withkey, and returns the new value.longAtomicLongMap. put(K key, long newValue)AssociatesnewValuewithkeyin this map, and returns the value previously associated withkey, or zero if there was no such value.longAtomicLongMap. remove(K key)Removes and returns the value associated withkey.booleanAtomicLongMap. removeIfZero(K key)Atomically removekeyfrom the map iff its associated value is 0.protected booleanAbstractFuture. set(@Nullable V value)Sets the result of thisFutureunless thisFuturehas already been cancelled or set (including set asynchronously).booleanSettableFuture. set(@Nullable V value)protected booleanAbstractFuture. setException(java.lang.Throwable throwable)Sets the failed result of thisFutureunless thisFuturehas already been cancelled or set (including set asynchronously).booleanSettableFuture. setException(java.lang.Throwable throwable)protected booleanAbstractFuture. setFuture(ListenableFuture<? extends V> future)Sets the result of thisFutureto match the supplied inputFutureonce the suppliedFutureis done, unless thisFuturehas already been cancelled or set (including "set asynchronously," defined below).booleanSettableFuture. setFuture(ListenableFuture<? extends V> future)static booleanMoreExecutors. 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 booleanMoreExecutors. 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.ServiceAbstractExecutionThreadService. startAsync()ServiceAbstractIdleService. startAsync()ServiceAbstractScheduledService. startAsync()ServiceAbstractService. startAsync()ServiceService. startAsync()If the service state isService.State.NEW, this initiates service startup and returns immediately.ServiceManagerServiceManager. startAsync()Initiates service startup on all the services being managed.ServiceAbstractExecutionThreadService. stopAsync()ServiceAbstractIdleService. stopAsync()ServiceAbstractScheduledService. stopAsync()ServiceAbstractService. stopAsync()ServiceService. stopAsync()ServiceManagerServiceManager. stopAsync()Initiates service shutdown if necessary on all the services being managed.longAtomicLongMap. updateAndGet(K key, java.util.function.LongUnaryOperator updaterFunction)Updates the value currently associated withkeywith the specified function, and returns the new value.
-