Uses of Class
com.google.common.annotations.GwtCompatible
-
Packages that use GwtCompatible Package Description com.google.common.annotations Common annotation types.com.google.common.base Basic utility libraries and interfaces.com.google.common.cache This package contains caching utilities.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.html Escapers for HTML.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.math Arithmetic functions operating on primitive values andBigIntegerinstances.com.google.common.net This package contains utility methods and classes for working with net addresses (numeric IP and domain names).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.util.concurrent Concurrency utilities.com.google.common.xml Escapers for XML. -
-
Uses of GwtCompatible in com.google.common.annotations
Classes in com.google.common.annotations with annotations of type GwtCompatible Modifier and Type Class Description interfaceBetaSignifies that a public API (public class, method or field) is subject to incompatible changes, or even removal, in a future release.interfaceGwtCompatibleThe presence of this annotation on a type indicates that the type may be used with the Google Web Toolkit (GWT).interfaceGwtIncompatibleThe presence of this annotation on an API indicates that the method may not be used with the Google Web Toolkit (GWT).interfaceVisibleForTestingAnnotates 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 GwtCompatible Modifier and Type Class Description classAsciiStatic methods pertaining to ASCII characters (those in the range of values0x00through0x7F), and to strings containing such characters.classCaseFormatUtility class for converting between various ASCII case formats.classCharMatcherclassCharsetsContains constant definitions for the six standardCharsetinstances, which are guaranteed to be supported by all Java platform implementations.classConverter<A,B>A function fromAtoBwith an associated reverse function fromBtoA; used for converting back and forth between different representations of the same information.classEnumsUtility methods for working withEnuminstances.classEquivalence<T>A strategy for determining whether two instances are considered equivalent, and for computing hash codes in a manner consistent with that equivalence.interfaceFunction<F,T>Determines an output value based on an input value; a pre-Java-8 version ofjava.util.function.Function.classFunctionsStatic utility methods pertaining tocom.google.common.base.Functioninstances; see that class for information about migrating tojava.util.function.classJoinerclassMoreObjectsHelper functions that operate on anyObject, and are not already provided inObjects.classObjectsHelper functions that can operate on anyObject.classOptional<T>An immutable object that may contain a non-null reference to another object.classPreconditionsStatic convenience methods that help a method or constructor check whether it was invoked correctly (that is, whether its preconditions were met).interfacePredicate<T>Determines a true or false value for a given input; a pre-Java-8 version ofjava.util.function.Predicate.classPredicatesStatic utility methods pertaining toPredicateinstances.classSplitterExtracts non-overlapping substrings from an input string, typically by recognizing appearances of a separator sequence.classStopwatchAn object that accurately measures elapsed time: the measured duration between two successive readings of "now" in the same process.classStringsStatic utility methods pertaining toStringorCharSequenceinstances.interfaceSupplier<T>A class that can supply objects of a single type; a pre-Java-8 version ofjava.util.function.Supplier.classSuppliersUseful suppliers.classThrowablesStatic utility methods pertaining to instances ofThrowable.classTickerA time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.classUtf8Low-level, high-performance utility methods related to the UTF-8 character encoding.classVerifyStatic convenience methods that serve the same purpose as Java language assertions, except that they are always enabled.classVerifyExceptionException thrown upon the failure of a verification check, including those performed by the convenience methods of theVerifyclass.Methods in com.google.common.base with annotations of type GwtCompatible Modifier and Type Method Description static <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 totrueif the object reference being tested is null.static <T> Predicate<T>Predicates. notNull()Returns a predicate that evaluates totrueif the object reference being tested is not null.<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 GwtCompatible Modifier and Type Class Description classAbstractCache<K,V>This class provides a skeletal implementation of theCacheinterface to minimize the effort required to implement this interface.interfaceCache<K,V>A semi-persistent mapping from keys to values.classCacheBuilder<K,V>A builder ofLoadingCacheandCacheinstances having any combination of the following features: automatic loading of entries into the cache least-recently-used eviction when a maximum size is exceeded time-based expiration of entries, measured since last access or last write keys automatically wrapped inWeakReferencevalues automatically wrapped inWeakReferenceorSoftReferencenotification of evicted (or otherwise removed) entries accumulation of cache access statisticsclassCacheLoader<K,V>Computes or retrieves values, based on a key, for use in populating aLoadingCache.classCacheStatsStatistics about the performance of aCache.interfaceLoadingCache<K,V>A semi-persistent mapping from keys to values.classRemovalCauseThe reason why a cached entry was removed.interfaceRemovalListener<K,V>An object that can receive a notification when an entry is removed from a cache.classRemovalNotification<K,V>A notification of the removal of a single entry.interfaceWeigher<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 GwtCompatible Modifier and Type Class Description classAbstractIterator<T>This class provides a skeletal implementation of theIteratorinterface, to make this interface easier to implement for certain types of data sources.classAbstractSequentialIterator<T>This class provides a skeletal implementation of theIteratorinterface for sequences whose next element can always be derived from the previous element.classArrayListMultimap<K,V>Implementation ofMultimapthat uses anArrayListto store the values for a given key.classArrayTable<R,C,V>Fixed-sizeTableimplementation backed by a two-dimensional array.interfaceBiMap<K,V>A bimap (or "bidirectional map") is a map that preserves the uniqueness of its values as well as that of its keys.classBoundTypeIndicates whether an endpoint of some range is contained in the range itself ("closed") or not ("open").interfaceClassToInstanceMap<B>A map, each entry of which maps a Java raw type to an instance of that type.classCollections2Provides static methods for working withCollectioninstances.classComparatorsProvides static methods for working withComparatorinstances.classComparisonChainA utility for performing a chained comparison statement.classComputationExceptionDeprecated.This exception is no longer thrown bycom.google.common.classContiguousSet<C extends Comparable>A sorted set of contiguous values in a givenDiscreteDomain.classDiscreteDomain<C extends Comparable>A descriptor for a discreteComparabledomain such as allIntegerinstances.classEnumBiMap<K extends Enum<K>,V extends Enum<V>>ABiMapbacked by twoEnumMapinstances.classEnumHashBiMap<K extends Enum<K>,V>ABiMapbacked by anEnumMapinstance for keys-to-values, and aHashMapinstance for values-to-keys.classEnumMultiset<E extends Enum<E>>Multiset implementation specialized for enum elements, supporting all single-element operations in O(1).classEvictingQueue<E>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.classFluentIterable<E>An expandedIterableAPI, providing functionality similar to Java 8's powerful streams library in a slightly different way.classForwardingCollection<E>A collection which forwards all its method calls to another collection.classForwardingConcurrentMap<K,V>A concurrent map which forwards all its method calls to another concurrent map.classForwardingIterator<T>An iterator which forwards all its method calls to another iterator.classForwardingList<E>A list which forwards all its method calls to another list.classForwardingListIterator<E>A list iterator which forwards all its method calls to another list iterator.classForwardingListMultimap<K,V>A list multimap which forwards all its method calls to another list multimap.classForwardingMap<K,V>A map which forwards all its method calls to another map.classForwardingMapEntry<K,V>A map entry which forwards all its method calls to another map entry.classForwardingMultimap<K,V>A multimap which forwards all its method calls to another multimap.classForwardingMultiset<E>A multiset which forwards all its method calls to another multiset.classForwardingObjectAn abstract base class for implementing the decorator pattern.classForwardingQueue<E>A queue which forwards all its method calls to another queue.classForwardingSet<E>A set which forwards all its method calls to another set.classForwardingSetMultimap<K,V>A set multimap which forwards all its method calls to another set multimap.classForwardingSortedMap<K,V>A sorted map which forwards all its method calls to another sorted map.classForwardingSortedMultiset<E>A sorted multiset which forwards all its method calls to another sorted multiset.classForwardingSortedSet<E>A sorted set which forwards all its method calls to another sorted set.classForwardingSortedSetMultimap<K,V>A sorted set multimap which forwards all its method calls to another sorted set multimap.classForwardingTable<R,C,V>A table which forwards all its method calls to another table.classHashBasedTable<R,C,V>Implementation ofTableusing linked hash tables.classHashBiMap<K,V>ABiMapbacked by two hash tables.classHashMultimap<K,V>Implementation ofMultimapusing hash tables.classHashMultiset<E>Multiset implementation that uses hashing for key and entry access.classImmutableBiMap<K,V>ABiMapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableCollection<E>ACollectionwhose contents will never change, and which offers a few additional guarantees detailed below.classImmutableList<E>AListwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableListMultimap<K,V>AListMultimapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableMap<K,V>AMapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableMultimap<K,V>AMultimapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableMultiset<E>AMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableSet<E>ASetwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableSetMultimap<K,V>ASetMultimapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableSortedMap<K,V>ANavigableMapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableSortedSet<E>ANavigableSetwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableTable<R,C,V>ATablewhose contents will never change, with many other important properties detailed atImmutableCollection.classIterablesAn assortment of mainly legacy static utility methods that operate on or return objects of typeIterable.classIteratorsThis class contains static utility methods that operate on or return objects of typeIterator.classLinkedHashMultimap<K,V>Implementation ofMultimapthat 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.classLinkedHashMultiset<E>AMultisetimplementation with predictable iteration order.classLinkedListMultimap<K,V>An implementation ofListMultimapthat supports deterministic iteration order for both keys and values.interfaceListMultimap<K,V>AMultimapthat can hold duplicate key-value pairs and that maintains the insertion ordering of values for a given key.classListsStatic utility methods pertaining toListinstances.interfaceMapDifference<K,V>An object representing the differences between two maps.classMapMakerA builder ofConcurrentMapinstances that can have keys or values automatically wrapped in weak references.classMapsclassMinMaxPriorityQueue<E>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.interfaceMultimap<K,V>A collection that maps keys to values, similar toMap, but in which each key may be associated with multiple values.classMultimapBuilder<K0,V0>A builder for a multimap implementation that allows customization of the backing map and value collection implementations used in a particular multimap.classMultimapsProvides static methods acting on or generating aMultimap.interfaceMultiset<E>A collection that supports order-independent equality, likeSet, but may have duplicate elements.classMultisetsProvides static utility methods for creating and working withMultisetinstances.classObjectArraysStatic utility methods pertaining to object arrays.classOrdering<T>A comparator, with additional methods to support common operations.interfacePeekingIterator<E>An iterator that supports a one-element lookahead while iterating.classQueuesclassRange<C extends Comparable>A range (or "interval") defines the boundaries around a contiguous span of values of someComparabletype; for example, "integers from 1 to 100 inclusive." Note that it is not possible to iterate over these contained values.interfaceRowSortedTable<R,C,V>Interface that extendsTableand whose rows are sorted.interfaceSetMultimap<K,V>AMultimapthat cannot hold duplicate key-value pairs.classSetsStatic utility methods pertaining toSetinstances.interfaceSortedMapDifference<K,V>An object representing the differences between two sorted maps.interfaceSortedMultiset<E>AMultisetwhich maintains the ordering of its elements, according to either their natural order or an explicitComparator.interfaceSortedSetMultimap<K,V>ASetMultimapwhose set of values for a given key are kept sorted; that is, they comprise aSortedSet.interfaceTable<R,C,V>A collection that associates an ordered pair of keys, called a row key and a column key, with a single value.classTablesProvides static methods that involve aTable.classTreeBasedTable<R,C,V>Implementation ofTablewhose row keys and column keys are ordered by their natural ordering or by supplied comparators.classTreeMultimap<K,V>Implementation ofMultimapwhose keys and values are ordered by their natural ordering or by supplied comparators.classTreeMultiset<E>A multiset which maintains the ordering of its elements, according to either their natural order or an explicitComparator.classTreeTraverser<T>Deprecated.UseTraverserinstead.classUnmodifiableIterator<E>An iterator that does not supportUnmodifiableIterator.remove().classUnmodifiableListIterator<E>A list iterator that does not supportUnmodifiableIterator.remove(),UnmodifiableListIterator.add(E), orUnmodifiableListIterator.set(E).Methods in com.google.common.collect with annotations of type GwtCompatible Modifier and Type Method Description static Ordering<Object>Ordering. 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.<U extends T>
Ordering<U>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>Ordering. explicit(List<T> valuesInOrder)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>Ordering. from(Ordering<T> ordering)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.<S extends T>
Ordering<Iterable<S>>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, emptyArrayListinstance (for Java 6 and earlier).static <E> ArrayList<E>Lists. newArrayList(E... elements)Creates a mutableArrayListinstance containing the given elements.static <E> ArrayList<E>Lists. newArrayList(Iterable<? extends E> elements)Creates a mutableArrayListinstance 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 mutableArrayListinstance 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 anArrayListinstance backed by an array with the specified initial size; simply delegates toArrayList(int).static <E> ArrayList<E>Lists. newArrayListWithExpectedSize(int estimatedSize)Creates anArrayListinstance to holdestimatedSizeelements, 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, emptyLinkedListinstance (for Java 6 and earlier).static <E> LinkedList<E>Lists. newLinkedList(Iterable<? extends E> elements)Creates a mutableLinkedListinstance 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>).<S extends T>
Ordering<S>Ordering. nullsFirst()Returns an ordering that treatsnullas less than all other values and usesthisto compare non-null values.<S extends T>
Ordering<S>Ordering. nullsLast()Returns an ordering that treatsnullas 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 onFwhich orders elements by first applying a function to them, then comparing those results usingthis.static <E> Set<Set<E>>Sets. powerSet(Set<E> set)Returns the set of all possible subsets ofset.<S extends T>
Ordering<S>Ordering. reverse()Returns the reverse of this ordering; theOrderingequivalent toCollections.reverseOrder(Comparator).static Ordering<Object>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
Classes in com.google.common.escape with annotations of type GwtCompatible Modifier and Type Class Description classArrayBasedCharEscaperACharEscaperthat uses an array to quickly look up replacement characters for a givencharvalue.classArrayBasedEscaperMapAn implementation-specific parameter class suitable for initializingArrayBasedCharEscaperorArrayBasedUnicodeEscaperinstances.classArrayBasedUnicodeEscaperAUnicodeEscaperthat uses an array to quickly look up replacement characters for a given code point.classCharEscaperAn object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).classCharEscaperBuilderSimple helper class to build a "sparse" array of objects based on the indexes that were added to it.classEscaperAn object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).classEscapersStatic utility methods pertaining toEscaperinstances.classUnicodeEscaperAnEscaperthat 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
Classes in com.google.common.html with annotations of type GwtCompatible Modifier and Type Class Description classHtmlEscapersEscaperinstances suitable for strings to be included in HTML attribute values and most elements' text contents. -
Uses of GwtCompatible in com.google.common.io
Classes in com.google.common.io with annotations of type GwtCompatible Modifier and Type Class Description classBaseEncodingA binary encoding scheme for reversibly translating between byte sequences and printable ASCII strings. -
Uses of GwtCompatible in com.google.common.math
Classes in com.google.common.math with annotations of type GwtCompatible Modifier and Type Class Description classBigIntegerMathA class for arithmetic on values of typeBigInteger.classDoubleMathA class for arithmetic on doubles that is not covered byMath.classIntMathA class for arithmetic on values of typeint.classLongMathA class for arithmetic on values of typelong. -
Uses of GwtCompatible in com.google.common.net
Classes in com.google.common.net with annotations of type GwtCompatible Modifier and Type Class Description classHostAndPortAn immutable representation of a host and port.classHttpHeadersContains constant definitions for the HTTP header field names.classInternetDomainNameAn immutable well-formed internet domain name, such ascomorfoo.co.uk.classMediaTypeRepresents an Internet Media Type (also known as a MIME Type or Content Type).classPercentEscaperAUnicodeEscaperthat escapes some set of Java characters using a UTF-8 based percent encoding scheme.classUrlEscapersEscaperinstances 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 GwtCompatible Modifier and Type Class Description classBooleansclassBytesclassCharsclassDoublesclassFloatsclassImmutableDoubleArrayAn immutable array ofdoublevalues, with an API resemblingList.classImmutableIntArrayAn immutable array ofintvalues, with an API resemblingList.classImmutableLongArrayAn immutable array oflongvalues, with an API resemblingList.classIntsclassLongsclassShortsclassSignedBytesStatic utility methods pertaining tobyteprimitives that interpret values as signed.classUnsignedIntegerA wrapper class for unsignedintvalues, supporting arithmetic operations.classUnsignedIntsStatic utility methods pertaining tointprimitives that interpret values as unsigned (that is, any negative valuexis treated as the positive value2^32 + x).classUnsignedLongA wrapper class for unsignedlongvalues, supporting arithmetic operations.classUnsignedLongsStatic utility methods pertaining tolongprimitives that interpret values as unsigned (that is, any negative valuexis treated as the positive value2^64 + x). -
Uses of GwtCompatible in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent with annotations of type GwtCompatible Modifier and Type Class Description classAbstractFuture<V>An abstract implementation ofListenableFuture, intended for advanced users only.interfaceAsyncCallable<V>Computes a value, possibly asynchronously.interfaceAsyncFunction<I,O>Transforms a value, possibly asynchronously.classAtomicLongMap<K>A map containinglongvalues that can be atomically updated.classCallablesStatic utility methods pertaining to theCallableinterface.classExecutionErrorErrorvariant ofExecutionException.classFluentFuture<V>AListenableFuturethat supports fluent chains of operations.classForwardingFuture<V>AFuturewhich forwards all its method calls to another future.classForwardingListenableFuture<V>AListenableFuturewhich forwards all its method calls to another future.interfaceFutureCallback<V>A callback for accepting the results of aFuturecomputation asynchronously.classFuturesStatic utility methods pertaining to theFutureinterface.static classFutures.FutureCombiner<V>A helper to create a newListenableFuturewhose result is generated from a combination of input futures.interfaceListenableScheduledFuture<V>Helper interface to implement bothListenableFutureandScheduledFuture.classMoreExecutorsclassRunnablesStatic utility methods pertaining to theRunnableinterface.classSettableFuture<V>AListenableFuturewhose result can be set by aSettableFuture.set(Object),SettableFuture.setException(Throwable)orSettableFuture.setFuture(ListenableFuture)call.classUncheckedExecutionExceptionUnchecked variant ofExecutionException.classUninterruptiblesUtilities for treating interruptible operations as uninterruptible. -
Uses of GwtCompatible in com.google.common.xml
Classes in com.google.common.xml with annotations of type GwtCompatible Modifier and Type Class Description classXmlEscapersEscaperinstances suitable for strings to be included in XML attribute values and elements' text contents.
-