Uses of Annotation Type
com.google.common.annotations.GwtCompatible
Package
Description
Annotation types.
Basic utility libraries and interfaces.
Discouraged (in favor of Caffeine) caching utilities.
Collection interfaces and implementations, and other utilities for collections.
Interfaces, utilities, and simple implementations of escapers and encoders.
Escapers
for
HTML.
Utility methods and classes for I/O; for example input streams, output streams, readers, writers,
and files.
Arithmetic functions operating on primitive values and on
BigInteger
and BigDecimal
instances.Utility methods and classes for networking (such as IP addresses and domain names).
Static utilities for the eight primitive types and
void
, and value types for treating
them as unsigned or storing them in immutable arrays.Concurrency utilities.
Escapers
for
XML.
-
Uses of GwtCompatible in com.google.common.annotations
Modifier and TypeClassDescription@interface
Signifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.@interface
The presence of this annotation on a type indicates that the type may be used with the Google Web Toolkit (GWT).@interface
The presence of this annotation on an API indicates that the method may not be used with the Google Web Toolkit (GWT).@interface
The presence of this annotation on an API indicates that the method may not be used with J2kt.@interface
Annotates a program element that exists, or is more widely visible than otherwise necessary, only for use in test code. -
Uses of GwtCompatible in com.google.common.base
Modifier and TypeClassDescriptionfinal class
Static methods pertaining to ASCII characters (those in the range of values0x00
through0x7F
), and to strings containing such characters.enum
Utility class for converting between various ASCII case formats.class
final class
Contains constant definitions for the six standardCharset
instances, which are guaranteed to be supported by all Java platform implementations.class
Converter<A,
B> A function fromA
toB
with an associated reverse function fromB
toA
; used for converting back and forth between different representations of the same information.class
Equivalence<T>
A strategy for determining whether two instances are considered equivalent, and for computing hash codes in a manner consistent with that equivalence.interface
Legacy version ofjava.util.function.Function
.final class
Static utility methods pertaining tocom.google.common.base.Function
instances; see that class for information about migrating tojava.util.function
.class
final class
Helper functions that operate on anyObject
, and are not already provided inObjects
.final class
Helper functions that can operate on anyObject
.class
Optional<T>
An immutable object that may contain a non-null reference to another object.final class
Static convenience methods that help a method or constructor check whether it was invoked correctly (that is, whether its preconditions were met).interface
Legacy version ofjava.util.function.Predicate
.final class
Static utility methods pertaining toPredicate
instances.final class
Extracts non-overlapping substrings from an input string, typically by recognizing appearances of a separator sequence.final class
An object that accurately measures elapsed time: the measured duration between two successive readings of "now" in the same process.final class
Static utility methods pertaining toString
orCharSequence
instances.interface
Legacy version ofjava.util.function.Supplier
.final class
Useful suppliers.final class
Static utility methods pertaining to instances ofThrowable
.class
A time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.final class
Low-level, high-performance utility methods related to the UTF-8 character encoding.final class
Static convenience methods that serve the same purpose as Java language assertions, except that they are always enabled.class
Exception thrown upon the failure of a verification check, including those performed by the convenience methods of theVerify
class.Modifier and TypeMethodDescriptionPredicates.alwaysFalse()
Returns a predicate that always evaluates tofalse
.Predicates.alwaysTrue()
Returns a predicate that always evaluates totrue
.Predicates.isNull()
Returns a predicate that evaluates totrue
if the object reference being tested is null.Predicates.notNull()
Returns a predicate that evaluates totrue
if the object reference being tested is not null.final <S extends @Nullable T>
Equivalence<Iterable<S>> Equivalence.pairwise()
Returns an equivalence over iterables based on the equivalence of their elements. -
Uses of GwtCompatible in com.google.common.cache
Modifier and TypeClassDescriptionclass
AbstractCache<K,
V> This class provides a skeletal implementation of theCache
interface to minimize the effort required to implement this interface.interface
Cache<K,
V> A semi-persistent mapping from keys to values.final class
CacheBuilder<K,
V> A builder ofLoadingCache
andCache
instances.class
CacheLoader<K,
V> Computes or retrieves values, based on a key, for use in populating aLoadingCache
.final class
Statistics about the performance of aCache
.interface
LoadingCache<K,
V> A semi-persistent mapping from keys to values.enum
The reason why a cached entry was removed.interface
RemovalListener<K,
V> An object that can receive a notification when an entry is removed from a cache.final class
RemovalNotification<K,
V> A notification of the removal of a single entry.interface
Weigher<K,
V> Calculates the weights of cache entries. -
Uses of GwtCompatible in com.google.common.collect
Modifier and TypeClassDescriptionclass
AbstractIterator<T extends @Nullable Object>
This class provides a skeletal implementation of theIterator
interface, to make this interface easier to implement for certain types of data sources.class
This class provides a skeletal implementation of theIterator
interface for sequences whose next element can always be derived from the previous element.final class
ArrayListMultimap<K extends @Nullable Object,
V extends @Nullable Object> Implementation ofMultimap
that uses anArrayList
to store the values for a given key.final class
ArrayTable<R,
C, V> Fixed-sizeTable
implementation backed by a two-dimensional array.interface
A bimap (or "bidirectional map") is a map that preserves the uniqueness of its values as well as that of its keys.enum
Indicates whether an endpoint of some range is contained in the range itself ("closed") or not ("open").interface
ClassToInstanceMap<B extends @Nullable Object>
A map, each entry of which maps a Java raw type to an instance of that type.final class
Provides static methods for working withCollection
instances.final class
Provides static methods for working withComparator
instances.class
A utility for performing a chained comparison statement.class
Deprecated.class
ContiguousSet<C extends Comparable>
A sorted set of contiguous values in a givenDiscreteDomain
.class
DiscreteDomain<C extends Comparable>
A descriptor for a discreteComparable
domain such as allInteger
instances.final class
ABiMap
backed by twoEnumMap
instances.final class
EnumHashBiMap<K extends Enum<K>,
V extends @Nullable Object> ABiMap
backed by anEnumMap
instance for keys-to-values, and aHashMap
instance for values-to-keys.final class
EnumMultiset<E extends Enum<E>>
Multiset implementation specialized for enum elements, supporting all single-element operations in O(1).final class
A non-blocking queue which automatically evicts elements from the head of the queue when attempting to add new elements onto the queue and it is full.class
FluentIterable<E extends @Nullable Object>
A discouraged (but not deprecated) precursor to Java's superiorStream
library.class
ForwardingCollection<E extends @Nullable Object>
A collection which forwards all its method calls to another collection.class
A concurrent map which forwards all its method calls to another concurrent map.class
ForwardingIterator<T extends @Nullable Object>
An iterator which forwards all its method calls to another iterator.class
ForwardingList<E extends @Nullable Object>
A list which forwards all its method calls to another list.class
ForwardingListIterator<E extends @Nullable Object>
A list iterator which forwards all its method calls to another list iterator.class
ForwardingListMultimap<K extends @Nullable Object,
V extends @Nullable Object> A list multimap which forwards all its method calls to another list multimap.class
ForwardingMap<K extends @Nullable Object,
V extends @Nullable Object> A map which forwards all its method calls to another map.class
ForwardingMapEntry<K extends @Nullable Object,
V extends @Nullable Object> A map entry which forwards all its method calls to another map entry.class
ForwardingMultimap<K extends @Nullable Object,
V extends @Nullable Object> A multimap which forwards all its method calls to another multimap.class
ForwardingMultiset<E extends @Nullable Object>
A multiset which forwards all its method calls to another multiset.class
An abstract base class for implementing the decorator pattern.class
ForwardingQueue<E extends @Nullable Object>
A queue which forwards all its method calls to another queue.class
ForwardingSet<E extends @Nullable Object>
A set which forwards all its method calls to another set.class
ForwardingSetMultimap<K extends @Nullable Object,
V extends @Nullable Object> A set multimap which forwards all its method calls to another set multimap.class
ForwardingSortedMap<K extends @Nullable Object,
V extends @Nullable Object> A sorted map which forwards all its method calls to another sorted map.class
ForwardingSortedMultiset<E extends @Nullable Object>
A sorted multiset which forwards all its method calls to another sorted multiset.class
ForwardingSortedSet<E extends @Nullable Object>
A sorted set which forwards all its method calls to another sorted set.class
ForwardingSortedSetMultimap<K extends @Nullable Object,
V extends @Nullable Object> A sorted set multimap which forwards all its method calls to another sorted set multimap.class
A table which forwards all its method calls to another table.class
HashBasedTable<R,
C, V> Implementation ofTable
using linked hash tables.final class
ABiMap
backed by two hash tables.final class
HashMultimap<K extends @Nullable Object,
V extends @Nullable Object> Implementation ofMultimap
using hash tables.final class
HashMultiset<E extends @Nullable Object>
Multiset implementation backed by aHashMap
.class
ImmutableBiMap<K,
V> ABiMap
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
ACollection
whose contents will never change, and which offers a few additional guarantees detailed below.class
AList
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
AListMultimap
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
ImmutableMap<K,
V> AMap
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
ImmutableMultimap<K,
V> AMultimap
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
AMultiset
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
ImmutableSet<E>
ASet
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
ImmutableSetMultimap<K,
V> ASetMultimap
whose contents will never change, with many other important properties detailed atImmutableCollection
.final class
ImmutableSortedMap<K,
V> ANavigableMap
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
ANavigableSet
whose contents will never change, with many other important properties detailed atImmutableCollection
.class
ImmutableTable<R,
C, V> ATable
whose contents will never change, with many other important properties detailed atImmutableCollection
.final class
An assortment of mainly legacy static utility methods that operate on or return objects of typeIterable
.final class
This class contains static utility methods that operate on or return objects of typeIterator
.final class
LinkedHashMultimap<K extends @Nullable Object,
V extends @Nullable Object> Implementation ofMultimap
that does not allow duplicate key-value entries and that returns collections whose iterators follow the ordering in which the data was added to the multimap.final class
LinkedHashMultiset<E extends @Nullable Object>
AMultiset
implementation with predictable iteration order.class
LinkedListMultimap<K extends @Nullable Object,
V extends @Nullable Object> An implementation ofListMultimap
that supports deterministic iteration order for both keys and values.interface
ListMultimap<K extends @Nullable Object,
V extends @Nullable Object> AMultimap
that can hold duplicate key-value pairs and that maintains the insertion ordering of values for a given key.final class
Static utility methods pertaining toList
instances.interface
MapDifference<K extends @Nullable Object,
V extends @Nullable Object> An object representing the differences between two maps.final class
A builder ofConcurrentMap
instances that can have keys or values automatically wrapped in weak references.final class
final class
A double-ended priority queue, which provides constant-time access to both its least element and its greatest element, as determined by the queue's specified comparator.final class
Collectors not present injava.util.stream.Collectors
that are not otherwise associated with acom.google.common
type.interface
A collection that maps keys to values, similar toMap
, but in which each key may be associated with multiple values.class
MultimapBuilder<K0 extends @Nullable Object,
V0 extends @Nullable Object> An immutable builder forMultimap
instances, letting you independently select the desired behaviors (for example, ordering) of the backing map and value-collections.final class
Provides static methods acting on or generating aMultimap
.interface
A collection that supports order-independent equality, likeSet
, but may have duplicate elements.final class
Provides static utility methods for creating and working withMultiset
instances.final class
Static utility methods pertaining to object arrays.class
A comparator, with additional methods to support common operations.interface
PeekingIterator<E extends @Nullable Object>
An iterator that supports a one-element lookahead while iterating.final class
final class
Range<C extends Comparable>
A range (or "interval") defines the boundaries around a contiguous span of values of someComparable
type; for example, "integers from 1 to 100 inclusive."interface
Interface that extendsTable
and whose rows are sorted.interface
SetMultimap<K extends @Nullable Object,
V extends @Nullable Object> AMultimap
that cannot hold duplicate key-value pairs.final class
Static utility methods pertaining toSet
instances.interface
SortedMapDifference<K extends @Nullable Object,
V extends @Nullable Object> An object representing the differences between two sorted maps.interface
SortedMultiset<E extends @Nullable Object>
AMultiset
which maintains the ordering of its elements, according to either their natural order or an explicitComparator
.interface
SortedSetMultimap<K extends @Nullable Object,
V extends @Nullable Object> ASetMultimap
whose set of values for a given key are kept sorted; that is, they comprise aSortedSet
.final class
Static utility methods related toStream
instances.interface
A collection that associates an ordered pair of keys, called a row key and a column key, with a single value.final class
Provides static methods that involve aTable
.class
TreeBasedTable<R,
C, V> Implementation ofTable
whose row keys and column keys are ordered by their natural ordering or by supplied comparators.class
TreeMultimap<K extends @Nullable Object,
V extends @Nullable Object> Implementation ofMultimap
whose keys and values are ordered by their natural ordering or by supplied comparators.final class
TreeMultiset<E extends @Nullable Object>
A multiset which maintains the ordering of its elements, according to either their natural order or an explicitComparator
.class
Deprecated.UseTraverser
instead.class
UnmodifiableIterator<E extends @Nullable Object>
An iterator that does not supportUnmodifiableIterator.remove()
.class
UnmodifiableListIterator<E extends @Nullable Object>
A list iterator that does not supportUnmodifiableIterator.remove()
,UnmodifiableListIterator.add(E)
, orUnmodifiableListIterator.set(E)
.Modifier and TypeMethodDescriptionOrdering.allEqual()
Returns an ordering which treats all values as equal, indicating "no ordering."Ordering.compound
(Iterable<? extends Comparator<? super T>> comparators) Returns an ordering which tries each given comparator in order until a non-zero result is found, returning that result, and returning zero only if all comparators return zero.Ordering.compound
(Comparator<? super U> secondaryComparator) Returns an ordering which first uses the orderingthis
, but which in the event of a "tie", then delegates tosecondaryComparator
.static <T> Ordering
<T> Returns an ordering that compares objects according to the order in which they appear in the given list.static <T> Ordering
<T> Ordering.explicit
(T leastValue, T... remainingValuesInOrder) Returns an ordering that compares objects according to the order in which they are given to this method.Deprecated.no need to use thisOrdering.from
(Comparator<T> comparator) Returns an ordering based on an existing comparator instance.Maps.immutableEntry
(K key, V value) Returns an immutable map entry with the specified key and value.static <K extends Enum<K>,
V>
ImmutableMap<K, V> Maps.immutableEnumMap
(Map<K, ? extends V> map) Returns an immutable map instance containing the given entries.static <E extends Enum<E>>
ImmutableSet<E> Sets.immutableEnumSet
(E anElement, E... otherElements) Returns an immutable set instance containing the given enum elements.static <E extends Enum<E>>
ImmutableSet<E> Sets.immutableEnumSet
(Iterable<E> elements) Returns an immutable set instance containing the given enum elements.Ordering.lexicographical()
Returns a new ordering which sorts iterables by comparing corresponding elements pairwise until a nonzero result is found; imposes "dictionary order".static <C extends Comparable>
Ordering<C> Ordering.natural()
Returns a serializable ordering that uses the natural order of the values.Lists.newArrayList()
Creates a mutable, emptyArrayList
instance (for Java 6 and earlier).Lists.newArrayList
(E... elements) Creates a mutableArrayList
instance containing the given elements.Lists.newArrayList
(Iterable<? extends E> elements) Creates a mutableArrayList
instance containing the given elements; a very thin shortcut for creating an empty list then callingIterables.addAll(java.util.Collection<T>, java.lang.Iterable<? extends T>)
.Lists.newArrayList
(Iterator<? extends E> elements) Creates a mutableArrayList
instance containing the given elements; a very thin shortcut for creating an empty list and then callingIterators.addAll(java.util.Collection<T>, java.util.Iterator<? extends T>)
.Lists.newArrayListWithCapacity
(int initialArraySize) Creates anArrayList
instance backed by an array with the specified initial size; simply delegates toArrayList(int)
.Lists.newArrayListWithExpectedSize
(int estimatedSize) Creates anArrayList
instance to holdestimatedSize
elements, plus an unspecified amount of padding; you almost certainly mean to callLists.newArrayListWithCapacity(int)
(see that method for further advice on usage).static <E extends @Nullable Object>
LinkedList<E> Lists.newLinkedList()
Creates a mutable, emptyLinkedList
instance (for Java 6 and earlier).static <E extends @Nullable Object>
LinkedList<E> Lists.newLinkedList
(Iterable<? extends E> elements) Creates a mutableLinkedList
instance containing the given elements; a very thin shortcut for creating an empty list then callingIterables.addAll(java.util.Collection<T>, java.lang.Iterable<? extends T>)
.Ordering.nullsFirst()
Returns an ordering that treatsnull
as less than all other values and usesthis
to compare non-null values.Ordering.nullsLast()
Returns an ordering that treatsnull
as greater than all other values and uses this ordering to compare non-null values.Ordering.onResultOf
(Function<F, ? extends T> function) Returns a new ordering onF
which orders elements by first applying a function to them, then comparing those results usingthis
.Returns the set of all possible subsets ofset
.Ordering.reverse()
Returns the reverse of this ordering; theOrdering
equivalent toCollections.reverseOrder(Comparator)
.Ordering.usingToString()
Returns an ordering that compares objects by the natural ordering of their string representations as returned bytoString()
. -
Uses of GwtCompatible in com.google.common.escape
Modifier and TypeClassDescriptionclass
ACharEscaper
that uses an array to quickly look up replacement characters for a givenchar
value.final class
An implementation-specific parameter class suitable for initializingArrayBasedCharEscaper
orArrayBasedUnicodeEscaper
instances.class
AUnicodeEscaper
that uses an array to quickly look up replacement characters for a given code point.class
An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).final class
Simple helper class to build a "sparse" array of objects based on the indexes that were added to it.class
An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).final class
Static utility methods pertaining toEscaper
instances.class
AnEscaper
that converts literal text into a format safe for inclusion in a particular context (such as an XML document). -
Uses of GwtCompatible in com.google.common.html
Modifier and TypeClassDescriptionfinal class
Escaper
instances suitable for strings to be included in HTML attribute values and most elements' text contents. -
Uses of GwtCompatible in com.google.common.io
Modifier and TypeClassDescriptionclass
A binary encoding scheme for reversibly translating between byte sequences and printable ASCII strings. -
Uses of GwtCompatible in com.google.common.math
Modifier and TypeClassDescriptionfinal class
A class for arithmetic on values of typeBigInteger
.final class
A class for arithmetic on doubles that is not covered byMath
.final class
A class for arithmetic on values of typeint
.final class
A class for arithmetic on values of typelong
. -
Uses of GwtCompatible in com.google.common.net
Modifier and TypeClassDescriptionfinal class
An immutable representation of a host and port.final class
Contains constant definitions for the HTTP header field names.final class
An immutable well-formed internet domain name, such ascom
orfoo.co.uk
.final class
Represents an Internet Media Type (also known as a MIME Type or Content Type).final class
AUnicodeEscaper
that escapes some set of Java characters using a UTF-8 based percent encoding scheme.final class
Escaper
instances suitable for strings to be included in particular sections of URLs. -
Uses of GwtCompatible in com.google.common.primitives
Modifier and TypeClassDescriptionfinal class
final class
final class
final class
final class
final class
An immutable array ofdouble
values, with an API resemblingList
.final class
An immutable array ofint
values, with an API resemblingList
.final class
An immutable array oflong
values, with an API resemblingList
.final class
final class
final class
Contains static utility methods pertaining to primitive types and their corresponding wrapper types.final class
final class
Static utility methods pertaining tobyte
primitives that interpret values as signed.final class
A wrapper class for unsignedint
values, supporting arithmetic operations.final class
Static utility methods pertaining toint
primitives that interpret values as unsigned (that is, any negative valuex
is treated as the positive value2^32 + x
).final class
A wrapper class for unsignedlong
values, supporting arithmetic operations.final class
Static utility methods pertaining tolong
primitives that interpret values as unsigned (that is, any negative valuex
is treated as the positive value2^64 + x
). -
Uses of GwtCompatible in com.google.common.util.concurrent
Modifier and TypeClassDescriptionclass
AbstractFuture<V extends @Nullable Object>
An abstract implementation ofListenableFuture
, intended for advanced users only.interface
AsyncCallable<V extends @Nullable Object>
Computes a value, possibly asynchronously.interface
AsyncFunction<I extends @Nullable Object,
O extends @Nullable Object> Transforms a value, possibly asynchronously.final class
A map containinglong
values that can be atomically updated.final class
Static utility methods pertaining to theCallable
interface.class
Error
variant ofExecutionException
.class
FluentFuture<V extends @Nullable Object>
AListenableFuture
that supports fluent chains of operations.class
ForwardingFuture<V extends @Nullable Object>
AFuture
which forwards all its method calls to another future.class
ForwardingListenableFuture<V extends @Nullable Object>
AListenableFuture
which forwards all its method calls to another future.interface
FutureCallback<V extends @Nullable Object>
A callback for accepting the results of aFuture
computation asynchronously.final class
Static utility methods pertaining to theFuture
interface.static final class
Futures.FutureCombiner<V extends @Nullable Object>
A helper to create a newListenableFuture
whose result is generated from a combination of input futures.interface
ListenableScheduledFuture<V extends @Nullable Object>
Helper interface to implement bothListenableFuture
andScheduledFuture
.final class
final class
Static utility methods pertaining to theRunnable
interface.final class
SettableFuture<V extends @Nullable Object>
AListenableFuture
whose result can be set by aSettableFuture.set(Object)
,SettableFuture.setException(Throwable)
orSettableFuture.setFuture(ListenableFuture)
call.class
Unchecked variant ofExecutionException
.final class
Utilities for treating interruptible operations as uninterruptible. -
Uses of GwtCompatible in com.google.common.xml
Modifier and TypeClassDescriptionclass
Escaper
instances suitable for strings to be included in XML attribute values and elements' text contents.
com.google.common
.