Uses of Annotation Interface
com.google.common.annotations.GwtCompatible
Packages that use 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.
Testing utilities for use in tests of
com.google.common.escape
.Discouraged in favor of dependency injection and
concurrency frameworks, EventBus allows publish-subscribe-style communication.
An API for representing graph (node and edge) data.
Hash functions and related structures.
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.Utilities for reflection.
Testing utilities.
Concurrency utilities.
Escapers
for
XML.
-
Uses of GwtCompatible in com.google.common.annotations
Classes in com.google.common.annotations with annotations of type GwtCompatibleModifier 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
Classes in com.google.common.base with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) final class
Absent<T>
Implementation of anOptional
not containing a reference.(package private) class
Note this class is a copy ofAbstractIterator
(for dependency reasons).final 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.(package private) class
The subset of theMatcher
API which is used by this package, and also shared with there2j
library.(package private) class
The subset of thePattern
API which is used by this package, and also shared with there2j
library.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.(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.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.(package private) class
Holder for extra methods ofObjects
only in web.interface
Function<F,
T> Legacy version ofjava.util.function.Function
.(package private) final class
Equivalence applied on functional result.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
.(package private) final class
A utility method to perform unchecked casts to suppress errors produced by nullness analyses.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.(package private) final class
PairwiseEquivalence<E,
T extends E> (package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.(package private) final class
Methods factored out so that they can be emulated differently in GWT.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
Predicate<T>
Legacy version ofjava.util.function.Predicate
.final class
Static utility methods pertaining toPredicate
instances.(package private) final class
Present<T>
Implementation of anOptional
containing a reference.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
Supplier<T>
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.Methods in com.google.common.base with annotations of type GwtCompatibleModifier and TypeMethodDescriptionstatic <T> Predicate<T>
Predicates.alwaysFalse()
Returns a predicate that always evaluates tofalse
.static <T> Predicate<T>
Predicates.alwaysTrue()
Returns a predicate that always evaluates totrue
.static <T> Predicate<T>
Predicates.isNull()
Returns a predicate that evaluates totrue
if the object reference being tested is null.static <T> Predicate<T>
Predicates.notNull()
Returns a predicate that evaluates totrue
if the object reference being tested is not null.final <S extends 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
Classes in com.google.common.cache with annotations of type GwtCompatibleModifier 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
.(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.interface
LoadingCache<K,
V> A semi-persistent mapping from keys to values.(package private) class
LocalCache<K,
V> The concurrent hash map implementation built byCacheBuilder
.(package private) interface
Abstract interface for objects that can concurrently add longs.(package private) final class
Source ofLongAddable
objects that deals with GWT, Unsafe, and all that.(package private) final class
One or more variables that together maintain an initially zerolong
sum.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.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
Classes in com.google.common.collect with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) class
AbstractBiMap<K,
V> A general-purpose bimap implementation using any two backingMap
instances.(package private) class
This class provides a skeletal implementation of theListIterator
interface across a fixed number of elements that may be retrieved by position.class
This class provides a skeletal implementation of theIterator
interface, to make this interface easier to implement for certain types of data sources.(package private) class
AbstractListMultimap<K,
V> Basic implementation of theListMultimap
interface.(package private) class
Basic implementation of theMultimap
interface.(package private) class
Basic implementation ofMultiset<E>
backed by an instance ofMap<E, Count>
.(package private) class
AbstractMapEntry<K,
V> Implementation of theequals
,hashCode
, andtoString
methods ofEntry
.(package private) class
AbstractMultimap<K,
V> A skeletonMultimap
implementation, not necessarily in terms of aMap
.(package private) class
This class provides a skeletal implementation of theMultiset
interface.class
This class provides a skeletal implementation of theIterator
interface for sequences whose next element can always be derived from the previous element.(package private) class
AbstractSetMultimap<K,
V> Basic implementation of theSetMultimap
interface.(package private) class
Basic implementation of aSortedSetMultimap
with a sorted key set.(package private) class
This class provides a skeletal implementation of theSortedMultiset
interface.(package private) class
Basic implementation of theSortedSetMultimap
interface.(package private) class
AbstractTable<R,
C, V> Skeletal, implementation-agnostic implementation of theTable
interface.(package private) final class
An ordering that treats all references as equals, even nulls.final class
ArrayListMultimap<K,
V> Implementation ofMultimap
that uses anArrayList
to store the values for a given key.(package private) class
A dummy superclass to support GWT serialization of the element types of anArrayListMultimap
.final class
ArrayTable<R,
C, V> Fixed-sizeTable
implementation backed by a two-dimensional array.(package private) class
A dummy superclass ofImmutableMultimap
that can be instanceof'd without ProGuard retaining additional implementation details ofImmutableMultimap
.interface
BiMap<K,
V> 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").(package private) final class
ByFunctionOrdering<F,
T> An ordering that orders elements by applying an order to the result of a function on those elements.(package private) final class
Implementation ofLists.cartesianProduct(List)
.interface
A map, each entry of which maps a Java raw type to an instance of that type.(package private) final class
Collectors utilities forcommon.collect
internals.final class
Provides static methods for working withCollection
instances.(package private) final class
Precondition checks useful in collection implementations.(package private) final class
Spliterator utilities forcommon.collect
internals.(package private) final class
An ordering for a pre-existing comparator.final class
Provides static methods for working withComparator
instances.class
A utility for performing a chained comparison statement.(package private) final class
An ordering that tries several comparators in order.class
Deprecated.(package private) final class
An Iterator implementation which draws elements from a queue, removing them from the queue as it iterates.class
ContiguousSet<C extends Comparable>
A sorted set of contiguous values in a givenDiscreteDomain
.(package private) final class
A mutable value of typeint
, for multisets to use in tracking counts of values.(package private) class
Cut<C extends Comparable>
Implementation detail for the internal structure ofRange
instances.(package private) final class
DenseImmutableTable<R,
C, V> ARegularImmutableTable
optimized for dense data.(package private) class
A skeleton implementation of a descending multiset.class
DiscreteDomain<C extends Comparable>
A descriptor for a discreteComparable
domain such as allInteger
instances.(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.(package private) final class
EmptyContiguousSet<C extends Comparable>
An empty contiguous set.(package private) class
Implementation ofImmutableListMultimap
with no entries.(package private) class
Implementation ofImmutableListMultimap
with no entries.final class
ABiMap
backed by twoEnumMap
instances.final class
EnumHashBiMap<K extends Enum<K>,
V> 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.(package private) final class
An ordering that compares objects according to a given order.(package private) class
Implementation ofMultimaps.filterEntries(Multimap, Predicate)
.(package private) final class
Implementation ofMultimaps.filterEntries(SetMultimap, Predicate)
.(package private) final class
Implementation ofMultimaps.filterKeys(ListMultimap, Predicate)
.(package private) class
FilteredKeyMultimap<K,
V> Implementation ofMultimaps.filterKeys(Multimap, Predicate)
.(package private) final class
Implementation ofMultimaps.filterKeys(SetMultimap, Predicate)
.(package private) interface
FilteredMultimap<K,
V> An interface for all filtered multimap types.(package private) final class
Implementation forMultimap.values()
.(package private) interface
FilteredSetMultimap<K,
V> A supertype for filteredSetMultimap
implementations.class
A discouraged (but not deprecated) precursor to Java's superiorStream
library.class
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.(package private) class
Dummy class that makes the GWT serialization policy happy.(package private) class
Unused stub class, unreferenced under Java and manually emulated under GWT.(package private) class
Unused stub class, unreferenced under Java and manually emulated under GWT.(package private) class
Unused stub class, unreferenced under Java and manually emulated under GWT.class
An iterator which forwards all its method calls to another iterator.class
A list which forwards all its method calls to another list.class
A list iterator which forwards all its method calls to another list iterator.class
A list multimap which forwards all its method calls to another list multimap.class
ForwardingMap<K,
V> A map which forwards all its method calls to another map.class
ForwardingMapEntry<K,
V> A map entry which forwards all its method calls to another map entry.class
ForwardingMultimap<K,
V> A multimap which forwards all its method calls to another multimap.class
A multiset which forwards all its method calls to another multiset.class
An abstract base class for implementing the decorator pattern.class
A queue which forwards all its method calls to another queue.class
A set which forwards all its method calls to another set.class
A set multimap which forwards all its method calls to another set multimap.class
ForwardingSortedMap<K,
V> A sorted map which forwards all its method calls to another sorted map.class
A sorted multiset which forwards all its method calls to another sorted multiset.class
A sorted set which forwards all its method calls to another sorted set.class
A sorted set multimap which forwards all its method calls to another sorted set multimap.class
ForwardingTable<R,
C, V> A table which forwards all its method calls to another table.(package private) final class
GeneralRange<T>
A generalized interval on any ordering, for internal use.(package private) @interface
Private replacement forcom.google.gwt.user.client.rpc.GwtTransient
to work around build-system quirks.class
HashBasedTable<R,
C, V> Implementation ofTable
using linked hash tables.final class
HashBiMap<K,
V> ABiMap
backed by two hash tables.(package private) final class
Static methods for implementing hash-based collections.final class
HashMultimap<K,
V> Implementation ofMultimap
using hash tables.(package private) class
A dummy superclass to support GWT serialization of the element types of aHashMultimap
.final class
HashMultiset<E>
Multiset implementation backed by aHashMap
.(package private) class
List returned byImmutableCollection.asList()
that delegatescontains
checks to the backing collection.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.(package private) class
ImmutableEntry<K,
V> An immutableMap.Entry
, used both byMaps.immutableEntry(Object, Object)
and by other parts ofcommon.collect
as a superclass.(package private) final class
ImmutableEnumMap<K extends Enum<K>,
V> Implementation ofImmutableMap
backed by a non-emptyEnumMap
.(package private) final class
ImmutableEnumSet<E extends Enum<E>>
Implementation ofImmutableSet
backed by a non-emptyEnumSet
.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
.(package private) class
ImmutableMapEntrySet<K,
V> entrySet()
implementation forImmutableMap
.(package private) final class
ImmutableMapKeySet<K,
V> keySet()
implementation forImmutableMap
.(package private) final class
ImmutableMapValues<K,
V> values()
implementation forImmutableMap
.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
.(package private) class
A dummy superclass to support GWT serialization of the element type of anImmutableMultiset
.class
ImmutableSet<E>
ASet
whose contents will never change, with many other important properties detailed atImmutableCollection
.(package private) static class
class
ImmutableSetMultimap<K,
V> ASetMultimap
whose contents will never change, with many other important properties detailed atImmutableCollection
.(package private) final class
List returned byImmutableSortedSet.asList()
when the set isn't empty.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
.(package private) class
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
.(package private) final class
Implementation of ImmutableBiMap backed by a pair of JDK HashMaps, which have smartness protecting against hash flooding.(package private) final class
Implementation of ImmutableMap backed by a JDK HashMap, which has smartness protecting against hash flooding.(package private) final class
An implementation of ImmutableMultiset backed by a JDK Map and a list of entries.(package private) final class
ImmutableSet implementation backed by a JDK HashSet, used to defend against apparent hash flooding.(package private) final class
An ordering which sorts iterables by comparing corresponding elements pairwise.final class
LinkedHashMultimap<K,
V> 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.(package private) class
A dummy superclass to support GWT serialization of the element types of aLinkedHashMultimap
.final class
AMultiset
implementation with predictable iteration order.class
LinkedListMultimap<K,
V> An implementation ofListMultimap
that supports deterministic iteration order for both keys and values.interface
ListMultimap<K,
V> 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,
V> 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
(package private) static class
AbstractMap
extension that makes it easy to cache customized keySet, values, and entrySet views.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
Multimap<K,
V> A collection that maps keys to values, similar toMap
, but in which each key may be associated with multiple values.class
MultimapBuilder<K0,
V0> 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
Multiset<E>
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.(package private) final class
An ordering that uses the natural order of the values.(package private) final class
A utility method to perform unchecked casts to suppress errors produced by nullness analyses.(package private) final class
An ordering that treatsnull
as less than all other values.(package private) final class
An ordering that treatsnull
as greater than all other values.final class
Static utility methods pertaining to object arrays.class
Ordering<T>
A comparator, with additional methods to support common operations.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.interface
An iterator that supports a one-element lookahead while iterating.(package private) final class
Methods factored out so that they can be emulated differently in GWT.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." Note that it is not possible to iterate over these contained values.(package private) class
RangeGwtSerializationDependencies<C extends Comparable>
A dummy superclass to support GWT serialization of the element type of aRange
.(package private) final class
RegularContiguousSet<C extends Comparable>
An implementation ofContiguousSet
that contains one or more elements.(package private) class
AnImmutableAsList
implementation specialized for when the delegate collection is already backed by anImmutableList
or array.(package private) class
Bimap with zero or more mappings.(package private) class
Implementation ofImmutableList
backed by a simple array.(package private) final class
RegularImmutableMap<K,
V> Implementation ofImmutableMap
with two or more entries.private static final class
private static final class
(package private) class
Implementation ofImmutableMultiset
with zero or more elements.(package private) final class
Implementation ofImmutableSet
with two or more elements.(package private) final class
An immutable sorted set with one or more elements.(package private) class
RegularImmutableTable<R,
C, V> An implementation ofImmutableTable
holding an arbitrary number of cells.(package private) final class
An ordering that uses the reverse of the natural order of the values.(package private) final class
An ordering that uses the reverse of a given order.interface
RowSortedTable<R,
C, V> Interface that extendsTable
and whose rows are sorted.interface
SetMultimap<K,
V> AMultimap
that cannot hold duplicate key-value pairs.final class
Static utility methods pertaining toSet
instances.(package private) final class
Implementation ofImmutableMap
with exactly one entry.(package private) final class
Implementation ofImmutableList
with exactly one element.(package private) final class
Implementation ofImmutableSet
with exactly one element.(package private) class
SingletonImmutableTable<R,
C, V> An implementation ofImmutableTable
that holds a single cell.(package private) interface
AnIterable
whose elements are sorted relative to aComparator
, typically provided at creation time.(package private) final class
Utilities for dealing with sorted collections of all types.(package private) final class
Static methods pertaining to sortedList
instances.interface
SortedMapDifference<K,
V> An object representing the differences between two sorted maps.interface
AMultiset
which maintains the ordering of its elements, according to either their natural order or an explicitComparator
.(package private) final class
Provides static utility methods for creating and working withSortedMultiset
instances.interface
SortedSetMultimap<K,
V> ASetMultimap
whose set of values for a given key are kept sorted; that is, they comprise aSortedSet
.(package private) final class
SparseImmutableTable<R,
C, V> ARegularImmutableTable
optimized for sparse data.(package private) class
StandardRowSortedTable<R,
C, V> Implementation ofTable
whose iteration ordering across row keys is sorted by their natural ordering or by a supplied comparator.(package private) class
StandardTable<R,
C, V> Table
implementation backed by a map that associates row keys with column key / value secondary maps.final class
Static utility methods related toStream
instances.(package private) final class
Synchronized collection views.interface
Table<R,
C, V> A collection that associates an ordered pair of keys, called a row key and a column key, with a single value.(package private) final class
Collectors utilities forcommon.collect.Table
internals.final class
Provides static methods that involve aTable
.(package private) final class
TopKSelector<T>
An accumulator that selects the "top"k
elements added to it, relative to a provided comparator.(package private) class
TransformedIterator<F,
T> An iterator that transforms a backing iterator; for internal use.(package private) class
An iterator that transforms a backing list iterator; for internal use.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,
V> Implementation ofMultimap
whose keys and values are ordered by their natural ordering or by supplied comparators.final class
TreeMultiset<E>
A multiset which maintains the ordering of its elements, according to either their natural order or an explicitComparator
.class
Deprecated.UseTraverser
instead.class
An iterator that does not supportUnmodifiableIterator.remove()
.class
A list iterator that does not supportUnmodifiableIterator.remove()
,UnmodifiableListIterator.add(E)
, orUnmodifiableListIterator.set(E)
.(package private) final class
Implementation ofMultisets.unmodifiableSortedMultiset(SortedMultiset)
, split out into its own file so it can be GWT emulated (to deal with the differing elementSet() types in GWT and non-GWT).(package private) final class
An ordering that uses the natural order of the string representation of the values.Methods in com.google.common.collect with annotations of type GwtCompatibleModifier and TypeMethodDescriptionOrdering.allEqual()
Returns an ordering which treats all values as equal, indicating "no ordering." Passing this ordering to any stable sort algorithm results in no change to the order of elements.static <T> Ordering<T>
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.static <T> Ordering<T>
Deprecated.no need to use thisstatic <T> Ordering<T>
Ordering.from
(Comparator<T> comparator) Returns an ordering based on an existing comparator instance.static <K,
V> Map.Entry<K, V> 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.static <E> ArrayList<E>
Lists.newArrayList()
Creates a mutable, emptyArrayList
instance (for Java 6 and earlier).static <E> ArrayList<E>
Lists.newArrayList
(E... elements) Creates a mutableArrayList
instance containing the given elements.static <E> ArrayList<E>
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>)
.static <E> ArrayList<E>
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>)
.static <E> ArrayList<E>
Lists.newArrayListWithCapacity
(int initialArraySize) Creates anArrayList
instance backed by an array with the specified initial size; simply delegates toArrayList(int)
.static <E> ArrayList<E>
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> LinkedList<E>
Lists.newLinkedList()
Creates a mutable, emptyLinkedList
instance (for Java 6 and earlier).static <E> 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.<F> Ordering<F>
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.collect.testing
Classes in com.google.common.collect.testing with annotations of type GwtCompatibleModifier and TypeClassDescriptionclass
Base class for collection testers.class
Base class for testers of classes (includingCollection
andMap
) that contain elements.(package private) class
AbstractIteratorTester<E,
I extends Iterator<E>> Most of the logic forIteratorTester
andListIteratorTester
.class
AbstractMapTester<K,
V> Base class for map testers.class
This abstract base class for testers allows the framework to inject needed information after JUnit constructs the instances.enum
A sample enumerated type we use for testing.class
Simple base class to verify that we handle generics correctly.final class
Derived suite generators, split out of the suite builders so that they are available to GWT.class
Simple derived class to verify that we handle generics correctly.interface
A generator that relies on a preexisting generator for most of its work.final class
Adapts a test iterable generator to give a TestIteratorGenerator.(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.class
enum
A method supported by implementations of theIterator
orListIterator
interface.class
A utility for testing an Iterator implementation by comparing its behavior to that of a "known good" reference implementation.class
A utility similar toIteratorTester
for testing aListIterator
against a known good reference implementation.class
MapInterfaceTest<K,
V> Tests representing the contract ofMap
.class
A simplistic collection which implements only the bare minimum allowed by the spec, and throws exceptions whenever it can.final class
An implementation ofIterable
which throws an exception on all invocations of theMinimalIterable.iterator()
method after the first, and whose iterator is always unmodifiable.class
MinimalSet<E>
A simplistic set which implements the bare minimum so that it can be used in tests without relying on any specific Set implementations.final class
OneSizeGenerator<T,
E> Generator for collection of a particular size.interface
The subject-generator interface accepted by Collection testers, for testing a Collection at one particularCollectionSize
.(package private) final class
Methods factored out so that they can be emulated differently in GWT.class
A container class for the five sample elements we need for testing.class
Tests representing the contract ofSortedMap
.final class
Tester forSpliterator
implementations.class
GeneratesList<Character>
instances for test suites.interface
Creates collections, containing sample elements, to be tested.class
A generator using sample elements whose hash codes all collide badly.interface
To be implemented by test generators of things that can contain elements.class
Implementation helper forTestMapGenerator
for use with enum maps.class
An abstract TestSetGenerator for generating sets containing enum values.class
Create integer sets for collection tests.class
Create integer sets for testing collections that are sorted by natural ordering.interface
Creates iterators to be tested.interface
Creates sets, containing sample elements, to be tested.class
Creates map entries using sample keys and sample values.interface
TestMapGenerator<K,
V> Creates maps, containing sample elements, to be tested.interface
Creates queues, containing sample elements, to be tested.interface
Creates sets, containing sample elements, to be tested.interface
Creates sorted maps, containing sample elements, to be tested.interface
Creates sorted sets, containing sample elements, to be tested.class
String creation for testing arbitrary collections.class
TODO: javadoc.class
Implementation helper forTestMapGenerator
for use with maps of strings.class
Create queue of strings for tests.class
Create string sets for collection tests.class
Implementation helper forTestMapGenerator
for use with sorted maps of strings.class
Create string sets for testing collections that are sorted by natural ordering.interface
To be implemented by test generators that can produce test subjects without requiring any parameters.class
Creates collections containing unhashable sample elements, to be tested.class
An unhashable object to be used in testing as values in our collections.enum
A type which will never be used as the element type of any collection in our tests, and so can be used to test how a Collection behaves when given input of the wrong type. -
Uses of GwtCompatible in com.google.common.collect.testing.features
Classes in com.google.common.collect.testing.features with annotations of type GwtCompatibleModifier and TypeClassDescriptionenum
Optional features of classes derived fromCollection
.enum
When describing the features of the collection produced by a given generator (i.e.class
Thrown when requirements on a tester method or class conflict with each other.interface
Feature<T>
Base class for enumerating the features of an interface to be tested.enum
Optional features of classes derived fromList
.enum
Optional features of classes derived fromMap
.enum
Optional features of classes derived fromSet
.@interface
Use this to meta-annotateXxxFeature.Require
annotations, so that those annotations can be used to decide whether to apply a test to a given class-under-test.final class
Encapsulates the constraints that a class under test must satisfy in order for a tester method to be run against that class. -
Uses of GwtCompatible in com.google.common.collect.testing.google
Classes in com.google.common.collect.testing.google with annotations of type GwtCompatibleModifier and TypeClassDescriptionclass
AbstractBiMapTester<K,
V> Skeleton for a tester of aBiMap
.class
Superclass for allListMultimap
testers.class
AbstractMultimapTester<K,
V, M extends Multimap<K, V>> Superclass for allMultimap
testers.class
Common superclass forMultisetSetCountUnconditionallyTester
andMultisetSetCountConditionallyTester
.class
Base class for multiset collection tests.class
BiMapClearTester<K,
V> Tester forBiMap.clear
.class
BiMapEntrySetTester<K,
V> Tester forBiMap.entrySet
and methods on the entries in the set.class
Generators of variousBiMap
s and derived collections.class
BiMapInverseTester<K,
V> Tests for theinverse
view of a BiMap.class
BiMapPutTester<K,
V> Tester forBiMap.put
andBiMap.forcePut
.class
BiMapRemoveTester<K,
V> Tester forBiMap.remove
.final class
Derived suite generators for Guava collection interfaces, split out of the suite builders so that they are available to GWT.(package private) final class
Helper methods/assertions for use withcom.google.common.collect
types.final class
Common generators of different types of lists.class
Testers forListMultimap.asMap()
.class
Testers forListMultimap.equals(Object)
.class
Testers forMultimap.putAll(Object, Iterable)
.class
Testers forMultimap.put(Object, Object)
.class
Testers forMultimap.remove(Object, Object)
.class
Testers forListMultimap.replaceValues(Object, Iterable)
.class
Generators of different types of map and related collections, such as keys, entries and values.class
Tests forMultimap.asMap().get(Object)
.class
MultimapAsMapTester<K,
V> Tests forMultimap.asMap()
.class
MultimapClearTester<K,
V> Tests forMultimap.clear()
.class
class
Tester for thecontainsKey
methods ofMultimap
and itsasMap()
view.class
Tester forMultimap.containsValue(java.lang.Object)
.class
Tester forMultimap.entries
.class
MultimapEqualsTester<K,
V> Tester forMultimap.equals
.enum
Optional features of classes derived fromMultimap
.class
class
MultimapGetTester<K,
V> Tests forMultimap.get(Object)
.class
MultimapKeySetTester<K,
V> Tester forMultimap.keySet
.class
MultimapKeysTester<K,
V> Tester forMultimap.entries
.class
Tester forMultimap.putAll(Multimap)
.class
Tests forMultimap.putAll(Object, Iterable)
.class
MultimapPutTester<K,
V> Tester forMultimap.put(K, V)
.class
Tests forMultimap.removeAll(Object)
.class
Tests forMultimap.remove(Object, Object)
.class
Tests forMultimap.replaceValues(Object, Iterable)
.class
MultimapSizeTester<K,
V> Tester for thesize
methods ofMultimap
and its views.class
Tester forMultimap.toString()
.class
MultimapValuesTester<K,
V> Tester forMultimap.values
.class
Tests forMultiset.add
.class
Tests forMultiset.containsAll
not already addressed byCollectionContainsTester
.class
Tests forMultiset#count
.class
Tests forMultiset.elementSet()
not covered by the derivedSetTestSuiteBuilder
.class
Tests forMultiset.entrySet
.class
Tests forMultiset.equals
andMultiset.hashCode
.enum
Optional features of classes derived fromMultiset
.class
Tests forMultiset#forEachEntry
.class
Tester to make sure theiterator().remove()
implementation ofMultiset
works when there are multiple occurrences of elements.class
Tester for navigation of SortedMultisets.class
A generic JUnit test which tests multiset-specific read operations.class
Tests forMultiset#remove
,Multiset.removeAll
, andMultiset.retainAll
not already covered by the corresponding Collection testers.class
A generic JUnit test which tests multiset-specific serialization.class
A generic JUnit test which tests conditionalsetCount()
operations on a multiset.class
A generic JUnit test which tests unconditionalsetCount()
operations on a multiset.class
Generators of different types of sets and derived collections from sets.class
Testers forSetMultimap.asMap()
.class
Testers forSetMultimap.equals(Object)
.class
class
SetMultimapPutTester<K,
V> class
class
Generators of sorted maps and derived collections.class
Testers forSortedSetMultimap.asMap()
.class
Tester forSortedSetMultimap.get(Object)
.interface
TestBiMapGenerator<K,
V> Creates bimaps, containing sample entries, to be tested.class
An abstractTestMultisetGenerator
for generating multisets containing enum values.interface
A generator forListMultimap
implementations based on test data.interface
TestMultimapGenerator<K,
V, M extends Multimap<K, V>> Creates multimaps, containing sample elements, to be tested.interface
Creates multisets, containing sample elements, to be tested.interface
A generator forSetMultimap
implementations based on test data.class
Implementation helper forTestBiMapGenerator
for use with bimaps of strings.class
A skeleton generator for aListMultimap
implementation.class
Create multisets of strings for tests.class
A skeleton generator for aSetMultimap
implementation.class
A series of tests that support asserting that collections cannot be modified, either through direct or indirect means. -
Uses of GwtCompatible in com.google.common.collect.testing.testers
Classes in com.google.common.collect.testing.testers with annotations of type GwtCompatibleModifier and TypeClassDescriptionclass
Common parent class forListIndexOfTester
andListLastIndexOfTester
.class
Base class for list testers.class
Base class for queue collection tests.class
class
A generic JUnit test which tests addAll operations on a collection.class
A generic JUnit test which testsadd
operations on a collection.class
A generic JUnit test which testsclear()
operations on a collection.class
A generic JUnit test which testscontainsAll()
operations on a collection.class
A generic JUnit test which testscontains()
operations on a collection.class
A generic JUnit test which tests creation (typically through a constructor or static factory method) of a collection.class
class
A generic JUnit test which testsforEach
operations on a collection.class
A generic JUnit test which testsisEmpty()
operations on a collection.class
A generic JUnit test which testsiterator
operations on a collection.class
A generic JUnit test which testsremoveAll
operations on a collection.class
A generic JUnit test which testsCollection.removeIf(java.util.function.Predicate<? super E>)
.class
A generic JUnit test which testsremove
operations on a collection.class
A generic JUnit test which testsretainAll
operations on a collection.class
Basic reserialization test for collection types that must preserveequals()
behavior when reserialized.class
Basic reserialization test for collections.class
A generic JUnit test which testssize()
operations on a collection.class
A generic JUnit test which testsspliterator
operations on a collection.class
A generic JUnit test which testsstream
operations on a collection.class
A generic JUnit test which teststoArray()
operations on a collection.class
A generic JUnit test which teststoString()
operations on a collection.class
A generic JUnit test which testsputIfAbsent
operations on a concurrent map.class
class
A generic JUnit test which testsreplace(K, V, V)
operations on a concurrent map.class
A generic JUnit test which testsreplace(K, V)
operations on a concurrent map.class
A generic JUnit test which testsaddAll(int, Collection)
operations on a list.class
A generic JUnit test which testsaddAll(Collection)
operations on a list.class
A generic JUnit test which testsadd(int, Object)
operations on a list.class
A generic JUnit test which testsadd(Object)
operations on a list.class
A generic JUnit test which tests creation (typically through a constructor or static factory method) of a list.class
class
A generic JUnit test which testsget()
operations on a list.class
TestsList.hashCode()
.class
A generic JUnit test which testsindexOf()
operations on a list.class
A generic JUnit test which testslastIndexOf()
operations on a list.class
A generic JUnit test which testslistIterator
operations on a list.class
A generic JUnit test which tests removeAll operations on a list.class
A generic JUnit test which testsremove(int)
operations on a list.class
A generic JUnit test which testsremove(Object)
operations on a list.class
A generic JUnit test which testsList.replaceAll(java.util.function.UnaryOperator<E>)
.class
A generic JUnit test which testsretainAll
operations on a list.class
A generic JUnit test which testsset()
operations on a list.class
A generic JUnit test which testssubList()
operations on a list.class
A generic JUnit test which teststoArray()
operations on a list.class
MapClearTester<K,
V> A generic JUnit test which testsclear()
operations on a map.class
A generic JUnit test which testsMap.computeIfAbsent(K, java.util.function.Function<? super K, ? extends V>)
.class
A generic JUnit test which testsMap.computeIfPresent(K, java.util.function.BiFunction<? super K, ? super V, ? extends V>)
.class
MapComputeTester<K,
V> A generic JUnit test which testsMap.compute(K, java.util.function.BiFunction<? super K, ? super V, ? extends V>)
.class
MapContainsKeyTester<K,
V> A generic JUnit test which testscontainsKey()
operations on a map.class
A generic JUnit test which testscontainsValue()
operations on a map.class
MapCreationTester<K,
V> A generic JUnit test which tests creation (typically through a constructor or static factory method) of a map.class
MapEntrySetTester<K,
V> TestsMap.entrySet()
.class
MapEqualsTester<K,
V> TestsMap.equals(java.lang.Object)
.class
MapForEachTester<K,
V> A generic JUnit test which testsMap.forEach(java.util.function.BiConsumer<? super K, ? super V>)
.class
A generic JUnit test which testsMap.getOrDefault(java.lang.Object, V)
.class
MapGetTester<K,
V> A generic JUnit test which testsget
operations on a map.class
MapHashCodeTester<K,
V> TestsMap.hashCode()
.class
MapIsEmptyTester<K,
V> A generic JUnit test which testsisEmpty()
operations on a map.class
MapMergeTester<K,
V> A generic JUnit test which testsMap.merge(K, V, java.util.function.BiFunction<? super V, ? super V, ? extends V>)
.class
MapPutAllTester<K,
V> A generic JUnit test which testsputAll
operations on a map.class
MapPutIfAbsentTester<K,
V> A generic JUnit test which testsMap.putIfAbsent(K, V)
.class
MapPutTester<K,
V> A generic JUnit test which testsput
operations on a map.class
MapRemoveEntryTester<K,
V> Tester forMap.remove(Object, Object)
.class
MapRemoveTester<K,
V> A generic JUnit test which testsremove
operations on a map.class
MapReplaceAllTester<K,
V> A generic JUnit test which testsreplaceAll()
operations on a map.class
A generic JUnit test which testsMap.replace(Object, Object, Object)
.class
MapReplaceTester<K,
V> A generic JUnit test which testsMap.replace(Object, Object)
.class
Basic serialization test for maps.class
MapSizeTester<K,
V> A generic JUnit test which testssize()
operations on a map.class
MapToStringTester<K,
V> A generic JUnit test which teststoString()
operations on a map.(package private) final class
This class is emulated in GWT.class
A generic JUnit test which testselement()
operations on a queue.class
A generic JUnit test which tests offer operations on a queue.class
A generic JUnit test which testspeek()
operations on a queue.class
A generic JUnit test which testspoll()
operations on a queue.class
A generic JUnit test which testsremove()
operations on a queue.class
A generic JUnit test which tests addAll operations on a set.class
SetAddTester<E>
A generic JUnit test which tests add operations on a set.class
A generic JUnit test which tests creation (typically through a constructor or static factory method) of a set.class
TestsSet.equals(java.lang.Object)
.class
TestsSet.hashCode()
.class
A generic JUnit test which tests remove operations on a set.class
A generic JUnit test which tests operations on a SortedMap.class
A generic JUnit test which tests operations on a SortedSet. -
Uses of GwtCompatible in com.google.common.escape
Classes in com.google.common.escape with annotations of type GwtCompatibleModifier 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.(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.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.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.(package private) final class
Methods factored out so that they can be emulated differently in GWT.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.escape.testing
Classes in com.google.common.escape.testing with annotations of type GwtCompatibleModifier and TypeClassDescriptionfinal class
Extra assert methods for testing Escaper implementations. -
Uses of GwtCompatible in com.google.common.eventbus
Classes in com.google.common.eventbus with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class. -
Uses of GwtCompatible in com.google.common.graph
Classes in com.google.common.graph with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class. -
Uses of GwtCompatible in com.google.common.hash
Classes in com.google.common.hash with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class. -
Uses of GwtCompatible in com.google.common.html
Classes in com.google.common.html with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.final class
Escaper
instances suitable for strings to be included in HTML attribute values and most elements' text contents.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class. -
Uses of GwtCompatible in com.google.common.io
Classes in com.google.common.io with annotations of type GwtCompatibleModifier and TypeClassDescriptionclass
A binary encoding scheme for reversibly translating between byte sequences and printable ASCII strings.(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class. -
Uses of GwtCompatible in com.google.common.math
Classes in com.google.common.math with annotations of type GwtCompatibleModifier and TypeClassDescriptionfinal class
A class for arithmetic on values of typeBigInteger
.final class
A class for arithmetic on doubles that is not covered byMath
.(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.final class
A class for arithmetic on values of typeint
.final class
A class for arithmetic on values of typelong
.(package private) final class
A collection of preconditions for math functions.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class. -
Uses of GwtCompatible in com.google.common.net
Classes in com.google.common.net with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.final 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).(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.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
Classes in com.google.common.primitives with annotations of type GwtCompatibleModifier and TypeClassDescriptionfinal class
private static class
final class
private static class
final class
private static class
final class
private static class
(package private) class
Holder for web specializations of methods ofDoubles
.(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.final class
private static class
(package private) class
Holder for web specializations of methods ofFloats
.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
private static class
(package private) class
Holder for web specializations of methods ofInts
.final class
private static class
(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.(package private) final class
A string to be parsed as a number and the radix to interpret it in.final class
Contains static utility methods pertaining to primitive types and their corresponding wrapper types.final class
private static class
(package private) class
Holder for web specializations of methods ofShorts
.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.reflect
Classes in com.google.common.reflect with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class. -
Uses of GwtCompatible in com.google.common.testing
Classes in com.google.common.testing with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) final class
AnClusterException
is a data structure that allows for some code to "throw multiple exceptions", or something close to it.final class
CollectorTester<T,
A, R> Tester forCollector
implementations.(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.final class
Tester for equals() and hashCode() methods of a class.final class
Tester forEquivalence
relationships between groups of objects.class
A Ticker whose value can be advanced programmatically in test.(package private) final class
Methods factored out so that they can be emulated differently in GWT.(package private) final class
Implementation helper forEqualsTester
andEquivalenceTester
that tests for equivalence classes.final class
Tests serialization and deserialization of an object, optionally asserting that the resulting object is equal to the original.class
Simple utility for when you want to create aTearDown
that may throw an exception but should not fail a test when it does.interface
An object that can perform aTearDown.tearDown()
operation.interface
Any object which can accept registrations ofTearDown
instances.class
ATearDownStack
contains a stack ofTearDown
instances.class
Tests may use this to intercept messages that are logged by the code under test. -
Uses of GwtCompatible in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) class
AbstractCatchingFuture<V,
X extends Throwable, F, T> Implementations ofFutures.catching*
.class
An abstract implementation ofListenableFuture
, intended for advanced users only.(package private) class
AbstractTransformFuture<I,
O, F, T> Implementations ofFutures.transform*
.(package private) class
AggregateFuture<InputT,
OutputT> A future whose value is derived from a collection of input futures.(package private) class
AggregateFutureState<OutputT>
A helper which does some thread-safe operations for aggregate futures, which must be implemented differently in GWT.interface
Computes a value, possibly asynchronously.interface
AsyncFunction<I,
O> 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.(package private) class
CollectionFuture<V,
C> Aggregate future that collects (stores) results of each future.(package private) final class
Aggregate future that computes its value by calling a callable.(package private) enum
(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.class
Error
variant ofExecutionException
.class
FluentFuture<V>
AListenableFuture
that supports fluent chains of operations.(package private) final class
FluentFuture
that forwards all calls to a delegate.class
AFuture
which forwards all its method calls to another future.class
AListenableFuture
which forwards all its method calls to another future.interface
A callback for accepting the results of aFuture
computation asynchronously.final class
Static utility methods pertaining to theFuture
interface.static final class
A helper to create a newListenableFuture
whose result is generated from a combination of input futures.(package private) class
Hidden superclass ofFluentFuture
that provides us a place to declare special GWT versions of theFluentFuture.catching
family of methods.(package private) class
Hidden superclass ofFutures
that provides us a place to declare special GWT versions of theFutures.catching
family of methods.(package private) class
Implementation ofFutures.immediateFuture(V)
.(package private) class
(package private) final class
A holder for aLogger
that is initialized only when requested.interface
Helper interface to implement bothListenableFuture
andScheduledFuture
.final class
(package private) final class
A utility method to perform unchecked casts to suppress errors produced by nullness analyses.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.(package private) final class
Outer class that exists solely to let us writePartially.GwtIncompatible
instead of plainGwtIncompatible
.(package private) final class
Methods factored out so that they can be emulated differently in GWT.final class
Static utility methods pertaining to theRunnable
interface.final class
AListenableFuture
whose result can be set by aSettableFuture.set(Object)
,SettableFuture.setException(Throwable)
orSettableFuture.setFuture(ListenableFuture)
call.(package private) class
ARunnableFuture
that also implements theListenableFuture
interface.class
Unchecked variant ofExecutionException
.final class
Utilities for treating interruptible operations as uninterruptible. -
Uses of GwtCompatible in com.google.common.xml
Classes in com.google.common.xml with annotations of type GwtCompatibleModifier and TypeClassDescription(package private) @interface
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.(package private) @interface
Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.class
Escaper
instances suitable for strings to be included in XML attribute values and elements' text contents. -
Uses of GwtCompatible in com.google.thirdparty.publicsuffix
Classes in com.google.thirdparty.publicsuffix with annotations of type GwtCompatibleModifier and TypeClassDescriptionfinal class
Do not use this class directly.enum
Do not use this class directly.(package private) final class
Parser for a map of reversed domain names stored as a serialized radix tree.
com.google.common
.