Uses of Class
com.google.common.annotations.GwtIncompatible
-
Packages that use GwtIncompatible Package Description com.google.common.base Basic utility libraries and interfaces.com.google.common.cache Discouraged (in favor of Caffeine) caching utilities.com.google.common.collect Collection interfaces and implementations, and other utilities for collections.com.google.common.io Utility methods and classes for I/O; for example input streams, output streams, readers, writers, and files.com.google.common.math Arithmetic functions operating on primitive values and onBigIntegerandBigDecimalinstances.com.google.common.net Utility methods and classes for networking (such as IP addresses and domain names).com.google.common.primitives Static utilities for the eight primitive types andvoid, and value types for treating them as unsigned or storing them in immutable arrays.com.google.common.util.concurrent Concurrency utilities. -
-
Uses of GwtIncompatible in com.google.common.base
Classes in com.google.common.base with annotations of type GwtIncompatible Modifier and Type Class Description classDefaultsThis class provides default values for all Java types, as defined by the JLS.classEnumsUtility methods for working withEnuminstances.classFinalizablePhantomReference<T>Phantom reference with afinalizeReferent()method which a background thread invokes after the garbage collector reclaims the referent.interfaceFinalizableReferenceImplemented by references that have code to run after garbage collection of their referents.classFinalizableReferenceQueueA reference queue with an associated background thread that dequeues references and invokesFinalizableReference.finalizeReferent()on them.classFinalizableSoftReference<T>Soft reference with afinalizeReferent()method which a background thread invokes after the garbage collector reclaims the referent.classFinalizableWeakReference<T>Weak reference with afinalizeReferent()method which a background thread invokes after the garbage collector reclaims the referent.classStandardSystemPropertyRepresents a standard system property.Fields in com.google.common.base with annotations of type GwtIncompatible Modifier and Type Field Description static java.nio.charset.CharsetCharsets. US_ASCIIUS-ASCII: seven-bit ASCII, the Basic Latin block of the Unicode character set (ISO646-US).static java.nio.charset.CharsetCharsets. UTF_16UTF-16: sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark.static java.nio.charset.CharsetCharsets. UTF_16BEUTF-16BE: sixteen-bit UCS Transformation Format, big-endian byte order.static java.nio.charset.CharsetCharsets. UTF_16LEUTF-16LE: sixteen-bit UCS Transformation Format, little-endian byte order.Methods in com.google.common.base with annotations of type GwtIncompatible Modifier and Type Method Description static Predicate<java.lang.CharSequence>Predicates. contains(java.util.regex.Pattern pattern)Returns a predicate that evaluates totrueif theCharSequencebeing tested contains any match for the given regular expression pattern.static Predicate<java.lang.CharSequence>Predicates. containsPattern(java.lang.String pattern)Returns a predicate that evaluates totrueif theCharSequencebeing tested contains any match for the given regular expression pattern.static <X extends java.lang.Throwable>
XThrowables. getCauseAs(java.lang.Throwable throwable, java.lang.Class<X> expectedCauseType)Returnsthrowable's cause, cast toexpectedCauseType.static java.lang.reflect.FieldEnums. getField(java.lang.Enum<?> enumValue)Returns theFieldin whichenumValueis defined.static java.lang.StringThrowables. getStackTraceAsString(java.lang.Throwable throwable)Returns a string containing the result oftoString(), followed by the full, recursive stack trace ofthrowable.static <T extends @Nullable java.lang.Object>
Predicate<T>Predicates. instanceOf(java.lang.Class<?> clazz)Returns a predicate that evaluates totrueif the object being tested is an instance of the given class.static java.util.List<java.lang.StackTraceElement>Throwables. lazyStackTrace(java.lang.Throwable throwable)Deprecated.This method is equivalent toThrowable.getStackTrace()on JDK versions past JDK 8 and on all Android versions.static booleanThrowables. lazyStackTraceIsLazy()Deprecated.This method always returns false on JDK versions past JDK 8 and on all Android versions.static <T extends @Nullable java.lang.Object>
Supplier<T>Suppliers. memoizeWithExpiration(Supplier<T> delegate, java.time.Duration duration)Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed.static SplitterSplitter. on(java.util.regex.Pattern separatorPattern)Returns a splitter that considers any subsequence matchingpatternto be a separator.static SplitterSplitter. onPattern(java.lang.String separatorPattern)Returns a splitter that considers any subsequence matching a given pattern (regular expression) to be a separator.static java.lang.RuntimeExceptionThrowables. propagate(java.lang.Throwable throwable)Deprecated.To preserve behavior, usethrow eorthrow new RuntimeException(e)directly, or use a combination ofThrowables.throwIfUnchecked(java.lang.Throwable)andthrow new RuntimeException(e).static <X extends java.lang.Throwable>
voidThrowables. propagateIfInstanceOf(java.lang.Throwable throwable, java.lang.Class<X> declaredType)Deprecated.UseThrowables.throwIfInstanceOf(java.lang.Throwable, java.lang.Class<X>), which has the same behavior but rejectsnull.static voidThrowables. propagateIfPossible(java.lang.Throwable throwable)Deprecated.UseThrowables.throwIfUnchecked(java.lang.Throwable), which has the same behavior but rejectsnull.static <X extends java.lang.Throwable>
voidThrowables. propagateIfPossible(java.lang.Throwable throwable, java.lang.Class<X> declaredType)Deprecated.Use a combination ofThrowables.throwIfInstanceOf(java.lang.Throwable, java.lang.Class<X>)andThrowables.throwIfUnchecked(java.lang.Throwable), which togther provide the same behavior except that they rejectnull.static <X1 extends java.lang.Throwable,X2 extends java.lang.Throwable>
voidThrowables. propagateIfPossible(java.lang.Throwable throwable, java.lang.Class<X1> declaredType1, java.lang.Class<X2> declaredType2)Deprecated.Use a combination of two calls toThrowables.throwIfInstanceOf(java.lang.Throwable, java.lang.Class<X>)and one call toThrowables.throwIfUnchecked(java.lang.Throwable), which togther provide the same behavior except that they rejectnull.static <T extends java.lang.Enum<T>>
Converter<java.lang.String,T>Enums. stringConverter(java.lang.Class<T> enumClass)Returns a serializable converter that converts between strings andenumvalues of typeenumClassusingEnum.valueOf(Class, String)andEnum.name().static Predicate<java.lang.Class<?>>Predicates. subtypeOf(java.lang.Class<?> clazz)Returns a predicate that evaluates totrueif the class being tested is assignable to (is a subtype of)clazz.static <X extends java.lang.Throwable>
voidThrowables. throwIfInstanceOf(java.lang.Throwable throwable, java.lang.Class<X> declaredType)Throwsthrowableif it is an instance ofdeclaredType. -
Uses of GwtIncompatible in com.google.common.cache
Classes in com.google.common.cache with annotations of type GwtIncompatible Modifier and Type Class Description classAbstractLoadingCache<K,V>This class provides a skeletal implementation of theCacheinterface to minimize the effort required to implement this interface.classCacheBuilderSpecA specification of aCacheBuilderconfiguration.classForwardingCache<K,V>A cache which forwards all its method calls to another cache.classForwardingLoadingCache<K,V>A cache which forwards all its method calls to another cache.classRemovalListenersA collection of common removal listeners.Methods in com.google.common.cache with annotations of type GwtIncompatible Modifier and Type Method Description static <K,V>
CacheLoader<K,V>CacheLoader. asyncReloading(CacheLoader<K,V> loader, java.util.concurrent.Executor executor)Returns aCacheLoaderwhich wrapsloader, executing calls toCacheLoader.reload(K, V)usingexecutor.CacheBuilder<K,V>CacheBuilder. expireAfterAccess(java.time.Duration duration)Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.CacheBuilder<K,V>CacheBuilder. expireAfterWrite(java.time.Duration duration)Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.static CacheBuilder<java.lang.Object,java.lang.Object>CacheBuilder. from(CacheBuilderSpec spec)Constructs a newCacheBuilderinstance with the settings specified inspec.static CacheBuilder<java.lang.Object,java.lang.Object>CacheBuilder. from(java.lang.String spec)Constructs a newCacheBuilderinstance with the settings specified inspec.CacheBuilder<K,V>CacheBuilder. maximumWeight(long maximumWeight)Specifies the maximum weight of entries the cache may contain.CacheBuilder<K,V>CacheBuilder. refreshAfterWrite(long duration, java.util.concurrent.TimeUnit unit)Specifies that active entries are eligible for automatic refresh once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.CacheBuilder<K,V>CacheBuilder. refreshAfterWrite(java.time.Duration duration)Specifies that active entries are eligible for automatic refresh once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.ListenableFuture<V>CacheLoader. reload(K key, V oldValue)Computes or retrieves a replacement value corresponding to an already-cachedkey.CacheBuilder<K,V>CacheBuilder. softValues()Specifies that each value (not key) stored in the cache should be wrapped in aSoftReference(by default, strong references are used).CacheBuilder<K,V>CacheBuilder. weakKeys()Specifies that each key (not value) stored in the cache should be wrapped in aWeakReference(by default, strong references are used).CacheBuilder<K,V>CacheBuilder. weakValues()Specifies that each value (not key) stored in the cache should be wrapped in aWeakReference(by default, strong references are used).<K1 extends K,V1 extends V>
CacheBuilder<K1,V1>CacheBuilder. weigher(Weigher<? super K1,? super V1> weigher)Specifies the weigher to use in determining the weight of entries. -
Uses of GwtIncompatible in com.google.common.collect
Classes in com.google.common.collect with annotations of type GwtIncompatible Modifier and Type Class Description classConcurrentHashMultiset<E>A multiset that supports concurrent modifications and that provides atomic versions of mostMultisetoperations (exceptions where noted).classForwardingBlockingDeque<E>Deprecated.This class has moved tocom.google.common.util.concurrent.classForwardingDeque<E extends @Nullable java.lang.Object>A deque which forwards all its method calls to another deque.classForwardingNavigableMap<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>A navigable map which forwards all its method calls to another navigable map.classForwardingNavigableSet<E extends @Nullable java.lang.Object>A navigable set which forwards all its method calls to another navigable set.classImmutableClassToInstanceMap<B>AClassToInstanceMapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableRangeMap<K extends java.lang.Comparable<?>,V>ARangeMapwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableRangeSet<C extends java.lang.Comparable>ARangeSetwhose contents will never change, with many other important properties detailed atImmutableCollection.classImmutableSortedMultiset<E>ASortedMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.interfaceInterner<E>Provides similar behavior toString.intern()for any immutable type.classInternersContains static methods pertaining to instances ofInterner.classMutableClassToInstanceMap<B extends @Nullable java.lang.Object>A mutable class-to-instance map backed by an arbitrary user-provided map.interfaceRangeMap<K extends java.lang.Comparable,V>A mapping from disjoint nonempty ranges to non-null values.interfaceRangeSet<C extends java.lang.Comparable>classTreeRangeMap<K extends java.lang.Comparable,V>An implementation ofRangeMapbased on aTreeMap, supporting all optional operations.classTreeRangeSet<C extends java.lang.Comparable<?>>An implementation ofRangeSetbacked by aTreeMap.Methods in com.google.common.collect with annotations of type GwtIncompatible Modifier and Type Method Description static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
java.util.NavigableMap<K,V>Maps. asMap(java.util.NavigableSet<K> set, Function<? super K,V> function)Returns a view of the navigable set as a map, mapping keys from the set according to the specified function.static <E extends java.lang.Enum<E>>
java.util.EnumSet<E>Sets. complementOf(java.util.Collection<E> collection)Creates anEnumSetconsisting of all enum values that are not in the specified collection.static <E extends java.lang.Enum<E>>
java.util.EnumSet<E>Sets. complementOf(java.util.Collection<E> collection, java.lang.Class<E> type)Creates anEnumSetconsisting of all enum values that are not in the specified collection.static <T extends @Nullable java.lang.Object>
T[]ObjectArrays. concat(T[] first, T[] second, java.lang.Class<@NonNull T> type)Returns a new array that contains the concatenated contents of two arrays.abstract UnmodifiableIterator<E>ImmutableSortedSet. descendingIterator()ImmutableSortedSet<E>ImmutableSortedSet. descendingSet()static <E> intQueues. drain(java.util.concurrent.BlockingQueue<E> q, java.util.Collection<? super E> buffer, int numElements, long timeout, java.util.concurrent.TimeUnit unit)Drains the queue asBlockingQueue.drainTo(Collection, int), but if the requestednumElementselements are not available, it will wait for them up to the specified timeout.static <E> intQueues. drainUninterruptibly(java.util.concurrent.BlockingQueue<E> q, java.util.Collection<? super E> buffer, int numElements, long timeout, java.util.concurrent.TimeUnit unit)Drains the queue as Queues.drain(BlockingQueue, Collection, int, long, TimeUnit), but with a different behavior in case it is interrupted while waiting.<T> FluentIterable<T>FluentIterable. filter(java.lang.Class<T> type)Returns the elements from this fluent iterable that are instances of classtype.static <T> java.lang.Iterable<T>Iterables. filter(java.lang.Iterable<?> unfiltered, java.lang.Class<T> desiredType)Returns a view ofunfilteredcontaining all elements that are of the typedesiredType.static <T> UnmodifiableIterator<T>Iterators. filter(java.util.Iterator<?> unfiltered, java.lang.Class<T> desiredType)Returns a view ofunfilteredcontaining all elements that are of the typedesiredType.static <E extends @Nullable java.lang.Object>
java.util.NavigableSet<E>Sets. filter(java.util.NavigableSet<E> unfiltered, Predicate<? super E> predicate)Returns the elements of aNavigableSet,unfiltered, that satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
java.util.NavigableMap<K,V>Maps. filterEntries(java.util.NavigableMap<K,V> unfiltered, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate)Returns a sorted map containing the mappings inunfilteredthat satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
java.util.NavigableMap<K,V>Maps. filterKeys(java.util.NavigableMap<K,V> unfiltered, Predicate<? super K> keyPredicate)Returns a navigable map containing the mappings inunfilteredwhose keys satisfy a predicate.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
java.util.NavigableMap<K,V>Maps. filterValues(java.util.NavigableMap<K,V> unfiltered, Predicate<? super V> valuePredicate)Returns a navigable map containing the mappings inunfilteredwhose values satisfy a predicate.static ImmutableMap<java.lang.String,java.lang.String>Maps. fromProperties(java.util.Properties properties)Creates anImmutableMap<String, String>from aPropertiesinstance.java.util.NavigableSet<V>TreeMultimap. get(K key)ContiguousSet<C>ContiguousSet. headSet(C toElement, boolean inclusive)EImmutableSortedSet. higher(E e)java.lang.Class<K>EnumBiMap. keyType()Returns the associated key type.java.lang.Class<K>EnumHashBiMap. keyType()Returns the associated key type.EImmutableSortedSet. lower(E e)static <T extends @Nullable java.lang.Object>
T[]ObjectArrays. newArray(java.lang.Class<@NonNull T> type, int length)Returns a new array of the given length with the specified component type.static <E> java.util.concurrent.ArrayBlockingQueue<E>Queues. newArrayBlockingQueue(int capacity)Creates an emptyArrayBlockingQueuewith the given (fixed) capacity and nonfair access policy.static <E> java.util.concurrent.ConcurrentLinkedQueue<E>Queues. newConcurrentLinkedQueue()Creates an emptyConcurrentLinkedQueue.static <E> java.util.concurrent.ConcurrentLinkedQueue<E>Queues. newConcurrentLinkedQueue(java.lang.Iterable<? extends E> elements)Creates aConcurrentLinkedQueuecontaining the elements of the specified iterable, in the order they are returned by the iterable's iterator.static <E extends @Nullable java.lang.Object>
java.util.concurrent.CopyOnWriteArrayList<E>Lists. newCopyOnWriteArrayList()Creates an emptyCopyOnWriteArrayListinstance.static <E extends @Nullable java.lang.Object>
java.util.concurrent.CopyOnWriteArrayList<E>Lists. newCopyOnWriteArrayList(java.lang.Iterable<? extends E> elements)Creates aCopyOnWriteArrayListinstance containing the given elements.static <E extends @Nullable java.lang.Object>
java.util.concurrent.CopyOnWriteArraySet<E>Sets. newCopyOnWriteArraySet()Creates an emptyCopyOnWriteArraySetinstance.static <E extends @Nullable java.lang.Object>
java.util.concurrent.CopyOnWriteArraySet<E>Sets. newCopyOnWriteArraySet(java.lang.Iterable<? extends E> elements)Creates aCopyOnWriteArraySetinstance containing the given elements.static <E> java.util.concurrent.LinkedBlockingDeque<E>Queues. newLinkedBlockingDeque()Creates an emptyLinkedBlockingDequewith a capacity ofInteger.MAX_VALUE.static <E> java.util.concurrent.LinkedBlockingDeque<E>Queues. newLinkedBlockingDeque(int capacity)Creates an emptyLinkedBlockingDequewith the given (fixed) capacity.static <E> java.util.concurrent.LinkedBlockingDeque<E>Queues. newLinkedBlockingDeque(java.lang.Iterable<? extends E> elements)Creates aLinkedBlockingDequewith a capacity ofInteger.MAX_VALUE, containing the elements of the specified iterable, in the order they are returned by the iterable's iterator.static <E> java.util.concurrent.LinkedBlockingQueue<E>Queues. newLinkedBlockingQueue()Creates an emptyLinkedBlockingQueuewith a capacity ofInteger.MAX_VALUE.static <E> java.util.concurrent.LinkedBlockingQueue<E>Queues. newLinkedBlockingQueue(int capacity)Creates an emptyLinkedBlockingQueuewith the given (fixed) capacity.static <E> java.util.concurrent.LinkedBlockingQueue<E>Queues. newLinkedBlockingQueue(java.lang.Iterable<? extends E> elements)Creates aLinkedBlockingQueuewith a capacity ofInteger.MAX_VALUE, containing the elements of the specified iterable, in the order they are returned by the iterable's iterator.static <E extends java.lang.Comparable>
java.util.concurrent.PriorityBlockingQueue<E>Queues. newPriorityBlockingQueue()Creates an emptyPriorityBlockingQueuewith the ordering given by its elements' natural ordering.static <E extends java.lang.Comparable>
java.util.concurrent.PriorityBlockingQueue<E>Queues. newPriorityBlockingQueue(java.lang.Iterable<? extends E> elements)Creates aPriorityBlockingQueuecontaining the given elements.static <E> java.util.concurrent.SynchronousQueue<E>Queues. newSynchronousQueue()Creates an emptySynchronousQueuewith nonfair access policy.static <E> Interner<E>Interners. newWeakInterner()Returns a new thread-safe interner which retains a weak reference to each instance it has interned, and so does not prevent these instances from being garbage-collected.EImmutableSortedSet. pollFirst()Deprecated.Unsupported operation.EImmutableSortedSet. pollLast()Deprecated.Unsupported operation.static <K extends java.lang.Comparable<? super K>,V extends @Nullable java.lang.Object>
java.util.NavigableMap<K,V>Maps. subMap(java.util.NavigableMap<K,V> map, Range<K> range)Returns a view of the portion ofmapwhose keys are contained byrange.ContiguousSet<C>ContiguousSet. subSet(C fromElement, boolean fromInclusive, C toElement, boolean toInclusive)ImmutableSortedSet<E>ImmutableSortedSet. subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)static <K extends java.lang.Comparable<? super K>>
java.util.NavigableSet<K>Sets. subSet(java.util.NavigableSet<K> set, Range<K> range)Returns a view of the portion ofsetwhose elements are contained byrange.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
java.util.NavigableMap<K,V>Maps. synchronizedNavigableMap(java.util.NavigableMap<K,V> navigableMap)Returns a synchronized (thread-safe) navigable map backed by the specified navigable map.static <E extends @Nullable java.lang.Object>
java.util.NavigableSet<E>Sets. synchronizedNavigableSet(java.util.NavigableSet<E> navigableSet)Returns a synchronized (thread-safe) navigable set backed by the specified navigable set.ContiguousSet<C>ContiguousSet. tailSet(C fromElement, boolean inclusive)@Nullable V[][]ArrayTable. toArray(java.lang.Class<V> valueClass)Returns a two-dimensional array with the table contents.E[]FluentIterable. toArray(java.lang.Class<@NonNull E> type)Returns an array containing all of the elements from this fluent iterable in iteration order.static <T extends @Nullable java.lang.Object>
T[]Iterables. toArray(java.lang.Iterable<? extends T> iterable, java.lang.Class<@NonNull T> type)Copies an iterable's elements into an array.static <T extends @Nullable java.lang.Object>
T[]Iterators. toArray(java.util.Iterator<? extends T> iterator, java.lang.Class<@NonNull T> type)Copies an iterator's elements into an array.static <K extends @Nullable java.lang.Object,V1 extends @Nullable java.lang.Object,V2 extends @Nullable java.lang.Object>
java.util.NavigableMap<K,V2>Maps. transformEntries(java.util.NavigableMap<K,V1> fromMap, Maps.EntryTransformer<? super K,? super V1,V2> transformer)Returns a view of a navigable map whose values are derived from the original navigable map's entries.static <K extends @Nullable java.lang.Object,V1 extends @Nullable java.lang.Object,V2 extends @Nullable java.lang.Object>
java.util.NavigableMap<K,V2>Maps. transformValues(java.util.NavigableMap<K,V1> fromMap, Function<? super V1,V2> function)Returns a view of a navigable map where each value is transformed by a function.static <K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
java.util.NavigableMap<K,V>Maps. unmodifiableNavigableMap(java.util.NavigableMap<K,? extends V> map)Returns an unmodifiable view of the specified navigable map.java.lang.Class<V>EnumBiMap. valueType()Returns the associated value type.Interners.InternerBuilderInterners.InternerBuilder. weak()Instructs theInterners.InternerBuilderto build a weak interner.MapMakerMapMaker. weakKeys()Specifies that each key (not value) stored in the map should be wrapped in aWeakReference(by default, strong references are used).MapMakerMapMaker. weakValues()Specifies that each value (not key) stored in the map should be wrapped in aWeakReference(by default, strong references are used). -
Uses of GwtIncompatible in com.google.common.io
Classes in com.google.common.io with annotations of type GwtIncompatible Modifier and Type Interface Description interfaceByteArrayDataInputAn extension ofDataInputfor reading from in-memory byte arrays; its methods offer identical functionality but do not throwIOException.interfaceByteArrayDataOutputAn extension ofDataOutputfor writing to in-memory byte arrays; its methods offer identical functionality but do not throwIOException.interfaceByteProcessor<T extends @Nullable java.lang.Object>A callback interface to process bytes from a stream.classByteSinkA destination to which bytes can be written, such as a file.classByteSourceA readable source of bytes, such as a file.classByteStreamsProvides utility methods for working with byte arrays and I/O streams.classCharSinkA destination to which characters can be written, such as a text file.classCharSourceA readable source of characters, such as a text file.classCharStreamsProvides utility methods for working with character streams.classCloseablesUtility methods for working withCloseableobjects.classCloserclassCountingInputStreamAnInputStreamthat counts the number of bytes read.classCountingOutputStreamAn OutputStream that counts the number of bytes written.classFileBackedOutputStreamAnOutputStreamthat starts buffering to a byte array, but switches to file buffering once the data reaches a configurable size.classFilesProvides utility methods for working with files.classFileWriteModeModes for opening a file for writing.classFlushablesUtility methods for working withFlushableobjects.interfaceLineProcessor<T extends @Nullable java.lang.Object>A callback to be used with the streamingreadLinesmethods.classLineReaderA class for reading lines of text.classLittleEndianDataInputStreamAn implementation ofDataInputthat uses little-endian byte ordering for readingshort,int,float,double, andlongvalues.classLittleEndianDataOutputStreamAn implementation ofDataOutputthat uses little-endian byte ordering for writingchar,short,int,float,double, andlongvalues.classPatternFilenameFilterFile name filter that only accepts files matching a regular expression.classResourcesProvides utility methods for working with resources in the classpath.Methods in com.google.common.io with annotations of type GwtIncompatible Modifier and Type Method Description ByteSourceBaseEncoding. decodingSource(CharSource encodedSource)Returns aByteSourcethat reads base-encoded bytes from the specifiedCharSource.abstract java.io.InputStreamBaseEncoding. decodingStream(java.io.Reader reader)Returns anInputStreamthat decodes base-encoded input from the specifiedReader.ByteSinkBaseEncoding. encodingSink(CharSink encodedSink)Returns aByteSinkthat writes base-encoded bytes to the specifiedCharSink.abstract java.io.OutputStreamBaseEncoding. encodingStream(java.io.Writer writer)Returns anOutputStreamthat encodes bytes using this encoding into the specifiedWriter. -
Uses of GwtIncompatible in com.google.common.math
Classes in com.google.common.math with annotations of type GwtIncompatible Modifier and Type Class Description classBigDecimalMathA class for arithmetic onBigDecimalthat is not covered by its built-in methods.classLinearTransformationThe representation of a linear transformation between real numbersxandy.classPairedStatsAn immutable value object capturing some basic statistics about a collection of paired double values (e.g. points on a plane).classPairedStatsAccumulatorA mutable object which accumulates paired double values (e.g. points on a plane) and tracks some basic statistics over all the values added so far.classQuantilesProvides a fluent API for calculating quantiles.classStatsA bundle of statistical summary values -- sum, count, mean/average, min and max, and several forms of variance -- that were computed from a single set of zero or more floating-point values.classStatsAccumulatorA mutable object which accumulates double values and tracks some basic statistics over all the values added so far.Methods in com.google.common.math with annotations of type GwtIncompatible Modifier and Type Method Description static longLongMath. checkedPow(long b, int k)Returns thebto thekth power, provided it does not overflow.static longLongMath. checkedSubtract(long a, long b)Returns the difference ofaandb, provided it does not overflow.static java.math.BigIntegerBigIntegerMath. divide(java.math.BigInteger p, java.math.BigInteger q, java.math.RoundingMode mode)Returns the result of dividingpbyq, rounding using the specifiedRoundingMode.static longLongMath. divide(long p, long q, java.math.RoundingMode mode)Returns the result of dividingpbyq, rounding using the specifiedRoundingMode.static longLongMath. factorial(int n)Returnsn!, that is, the product of the firstnpositive integers,1ifn == 0, orLong.MAX_VALUEif the result does not fit in along.static booleanDoubleMath. isMathematicalInteger(double x)Returnstrueifxrepresents a mathematical integer.static booleanDoubleMath. isPowerOfTwo(double x)Returnstrueifxis exactly equal to2^kfor some finite integerk.static booleanIntMath. isPrime(int n)Returnstrueifnis a prime number: an integer greater than one that cannot be factored into a product of smaller positive integers.static booleanLongMath. isPrime(long n)Returnstrueifnis a prime number: an integer greater than one that cannot be factored into a product of smaller positive integers.static intBigIntegerMath. log10(java.math.BigInteger x, java.math.RoundingMode mode)Returns the base-10 logarithm ofx, rounded according to the specified rounding mode.static intIntMath. log10(int x, java.math.RoundingMode mode)Returns the base-10 logarithm ofx, rounded according to the specified rounding mode.static intLongMath. log10(long x, java.math.RoundingMode mode)Returns the base-10 logarithm ofx, rounded according to the specified rounding mode.static intDoubleMath. log2(double x, java.math.RoundingMode mode)Returns the base 2 logarithm of a double value, rounded with the specified rounding mode to anint.static doubleDoubleMath. mean(double... values)Deprecated.UseStats.meanOf(java.lang.Iterable<? extends java.lang.Number>)instead, noting the less strict handling of non-finite values.static doubleDoubleMath. mean(java.lang.Iterable<? extends java.lang.Number> values)Deprecated.UseStats.meanOf(java.lang.Iterable<? extends java.lang.Number>)instead, noting the less strict handling of non-finite values.static doubleDoubleMath. mean(java.util.Iterator<? extends java.lang.Number> values)Deprecated.UseStats.meanOf(java.lang.Iterable<? extends java.lang.Number>)instead, noting the less strict handling of non-finite values.static intLongMath. mod(long x, int m)Returnsx mod m, a non-negative value less thanm.static longLongMath. mod(long x, long m)Returnsx mod m, a non-negative value less thanm.static intIntMath. pow(int b, int k)Returnsbto thekth power.static longLongMath. pow(long b, int k)Returnsbto thekth power.static java.math.BigIntegerDoubleMath. roundToBigInteger(double x, java.math.RoundingMode mode)Returns theBigIntegervalue that is equal toxrounded with the specified rounding mode, if possible.static doubleBigIntegerMath. roundToDouble(java.math.BigInteger x, java.math.RoundingMode mode)Returnsx, rounded to adoublewith the specified rounding mode.static doubleLongMath. roundToDouble(long x, java.math.RoundingMode mode)Returnsx, rounded to adoublewith the specified rounding mode.static intDoubleMath. roundToInt(double x, java.math.RoundingMode mode)Returns theintvalue that is equal toxrounded with the specified rounding mode, if possible.static longDoubleMath. roundToLong(double x, java.math.RoundingMode mode)Returns thelongvalue that is equal toxrounded with the specified rounding mode, if possible.static java.math.BigIntegerBigIntegerMath. sqrt(java.math.BigInteger x, java.math.RoundingMode mode)Returns the square root ofx, rounded with the specified rounding mode.static intIntMath. sqrt(int x, java.math.RoundingMode mode)Returns the square root ofx, rounded with the specified rounding mode.static longLongMath. sqrt(long x, java.math.RoundingMode mode)Returns the square root ofx, rounded with the specified rounding mode. -
Uses of GwtIncompatible in com.google.common.net
Classes in com.google.common.net with annotations of type GwtIncompatible Modifier and Type Class Description classHostSpecifierA syntactically valid host specifier, suitable for use in a URI.classInetAddressesStatic utility methods pertaining toInetAddressinstances. -
Uses of GwtIncompatible in com.google.common.primitives
Classes in com.google.common.primitives with annotations of type GwtIncompatible Modifier and Type Class Description classUnsignedBytesStatic utility methods pertaining tobyteprimitives that interpret values as unsigned (that is, any negative valuebis treated as the positive value256 + b).Methods in com.google.common.primitives with annotations of type GwtIncompatible Modifier and Type Method Description static charChars. fromByteArray(byte[] bytes)Returns thecharvalue whose big-endian representation is stored in the first 2 bytes ofbytes; equivalent toByteBuffer.wrap(bytes).getChar().static shortShorts. fromByteArray(byte[] bytes)Returns theshortvalue whose big-endian representation is stored in the first 2 bytes ofbytes; equivalent toByteBuffer.wrap(bytes).getShort().static charChars. fromBytes(byte b1, byte b2)Returns thecharvalue whose byte representation is the given 2 bytes, in big-endian order; equivalent toChars.fromByteArray(new byte[] {b1, b2}).static shortShorts. fromBytes(byte b1, byte b2)Returns theshortvalue whose byte representation is the given 2 bytes, in big-endian order; equivalent toShorts.fromByteArray(new byte[] {b1, b2}).static doubleDoubles. max(double... array)Returns the greatest value present inarray, using the same rules of comparison asMath.max(double, double).static floatFloats. max(float... array)Returns the greatest value present inarray, using the same rules of comparison asMath.max(float, float).static intInts. max(int... array)Returns the greatest value present inarray.static shortShorts. max(short... array)Returns the greatest value present inarray.static doubleDoubles. min(double... array)Returns the least value present inarray, using the same rules of comparison asMath.min(double, double).static floatFloats. min(float... array)Returns the least value present inarray, using the same rules of comparison asMath.min(float, float).static intInts. min(int... array)Returns the least value present inarray.static shortShorts. min(short... array)Returns the least value present inarray.UnsignedIntegerUnsignedInteger. times(UnsignedInteger val)Returns the result of multiplying this andval.static byte[]Chars. toByteArray(char value)Returns a big-endian representation ofvaluein a 2-element byte array; equivalent toByteBuffer.allocate(2).putChar(value).array().static byte[]Shorts. toByteArray(short value)Returns a big-endian representation ofvaluein a 2-element byte array; equivalent toByteBuffer.allocate(2).putShort(value).array().static java.lang.DoubleDoubles. tryParse(java.lang.String string)Parses the specified string as a double-precision floating point value.static java.lang.FloatFloats. tryParse(java.lang.String string)Parses the specified string as a single-precision floating point value. -
Uses of GwtIncompatible in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent with annotations of type GwtIncompatible Modifier and Type Class Description classAbstractExecutionThreadServiceBase class for services that can implementAbstractExecutionThreadService.startUp(),AbstractExecutionThreadService.run()andAbstractExecutionThreadService.shutDown()methods.classAbstractIdleServiceBase class for services that do not need a thread while "running" but may need one during startup and shutdown.classAbstractListeningExecutorServiceAbstractListeningExecutorServiceimplementation that createsListenableFutureinstances for eachRunnableandCallablesubmitted to it.classAbstractScheduledServiceBase class for services that can implementAbstractScheduledService.startUp()andAbstractScheduledService.shutDown()but while in the "running" state need to perform a periodic task.classAbstractServiceBase class for implementing services that can handleAbstractService.doStart()andAbstractService.doStop()requests, responding to them withAbstractService.notifyStarted()andAbstractService.notifyStopped()callbacks.classAtomicDoubleArrayAdoublearray in which elements may be updated atomically.classAtomicsStatic utility methods pertaining to classes in thejava.util.concurrent.atomicpackage.classCycleDetectingLockFactoryTheCycleDetectingLockFactorycreatesReentrantLockinstances andReentrantReadWriteLockinstances that detect potential deadlock by checking for cycles in lock acquisition order.classExecutionListA support class forListenableFutureimplementations to manage their listeners.classFakeTimeLimiterA TimeLimiter implementation which actually does not attempt to limit time at all.classForwardingBlockingDeque<E>ABlockingDequewhich forwards all its method calls to anotherBlockingDeque.classForwardingBlockingQueue<E>ABlockingQueuewhich forwards all its method calls to anotherBlockingQueue.classForwardingExecutorServiceAn executor service which forwards all its method calls to another executor service.classForwardingListeningExecutorServiceA listening executor service which forwards all its method calls to another listening executor service.classJdkFutureAdaptersUtilities necessary for working with libraries that supply plainFutureinstances.classListenableFutureTask<V extends @Nullable java.lang.Object>AFutureTaskthat also implements theListenableFutureinterface.interfaceListeningExecutorServiceAnExecutorServicethat returnsListenableFutureinstances.interfaceListeningScheduledExecutorServiceAScheduledExecutorServicethat returnsListenableFutureinstances from itsExecutorServicemethods.classMonitorA synchronization abstraction supporting waiting on arbitrary boolean conditions.classRateLimiterA rate limiter.interfaceServiceAn object with an operational state, plus asynchronousService.startAsync()andService.stopAsync()lifecycle methods to transition between states.classServiceManagerA manager for monitoring and controlling a set of services.classSimpleTimeLimiterA TimeLimiter that runs method calls in the background using anExecutorService.classStriped<L>A stripedLock/Semaphore/ReadWriteLock.classThreadFactoryBuilderA ThreadFactory builder, providing any combination of these features: whether threads should be marked as daemon threads a naming format a thread priority an uncaught exception handler a backing thread factoryinterfaceTimeLimiterImposes a time limit on method calls.classUncaughtExceptionHandlersFactories forThread.UncaughtExceptionHandlerinstances.classUncheckedTimeoutExceptionUnchecked version ofTimeoutException.Methods in com.google.common.util.concurrent with annotations of type GwtIncompatible Modifier and Type Method Description static voidMoreExecutors. addDelayedShutdownHook(java.util.concurrent.ExecutorService service, long terminationTimeout, java.util.concurrent.TimeUnit timeUnit)Add a shutdown hook to wait for thread completion in the givenservice.static <T extends @Nullable java.lang.Object>
AsyncCallable<T>Callables. asAsyncCallable(java.util.concurrent.Callable<T> callable, ListeningExecutorService listeningExecutorService)Creates anAsyncCallablefrom aCallable.static voidUninterruptibles. awaitTerminationUninterruptibly(java.util.concurrent.ExecutorService executor)Invokesexecutor.awaitTermination(long, TimeUnit)uninterruptibly with no timeout.static booleanUninterruptibles. awaitTerminationUninterruptibly(java.util.concurrent.ExecutorService executor, long timeout, java.util.concurrent.TimeUnit unit)Invokesexecutor.awaitTermination(long, TimeUnit)uninterruptibly.static voidUninterruptibles. awaitUninterruptibly(java.util.concurrent.CountDownLatch latch)Invokeslatch.await()uninterruptibly.static booleanUninterruptibles. awaitUninterruptibly(java.util.concurrent.CountDownLatch latch, long timeout, java.util.concurrent.TimeUnit unit)Invokeslatch.await(timeout, unit)uninterruptibly.static booleanUninterruptibles. awaitUninterruptibly(java.util.concurrent.locks.Condition condition, long timeout, java.util.concurrent.TimeUnit unit)Invokescondition.await(timeout, unit)uninterruptibly.static <V extends @Nullable java.lang.Object,X extends java.lang.Exception>
VFutures. getChecked(java.util.concurrent.Future<V> future, java.lang.Class<X> exceptionClass)Returns the result ofFuture.get(), converting most exceptions to a new instance of the given checked exception type.static <V extends @Nullable java.lang.Object,X extends java.lang.Exception>
VFutures. getChecked(java.util.concurrent.Future<V> future, java.lang.Class<X> exceptionClass, long timeout, java.util.concurrent.TimeUnit unit)Returns the result ofFuture.get(long, TimeUnit), converting most exceptions to a new instance of the given checked exception type.static java.util.concurrent.ExecutorServiceMoreExecutors. getExitingExecutorService(java.util.concurrent.ThreadPoolExecutor executor)Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.static java.util.concurrent.ExecutorServiceMoreExecutors. getExitingExecutorService(java.util.concurrent.ThreadPoolExecutor executor, long terminationTimeout, java.util.concurrent.TimeUnit timeUnit)Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.static java.util.concurrent.ScheduledExecutorServiceMoreExecutors. getExitingScheduledExecutorService(java.util.concurrent.ScheduledThreadPoolExecutor executor)Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.static java.util.concurrent.ScheduledExecutorServiceMoreExecutors. getExitingScheduledExecutorService(java.util.concurrent.ScheduledThreadPoolExecutor executor, long terminationTimeout, java.util.concurrent.TimeUnit timeUnit)Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.static <V extends @Nullable java.lang.Object>
VUninterruptibles. getUninterruptibly(java.util.concurrent.Future<V> future, long timeout, java.util.concurrent.TimeUnit unit)Invokesfuture.get(timeout, unit)uninterruptibly.static voidUninterruptibles. joinUninterruptibly(java.lang.Thread toJoin)InvokestoJoin.join()uninterruptibly.static voidUninterruptibles. joinUninterruptibly(java.lang.Thread toJoin, long timeout, java.util.concurrent.TimeUnit unit)Invokesunit.timedJoin(toJoin, timeout)uninterruptibly.static <I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object>
java.util.concurrent.Future<O>Futures. lazyTransform(java.util.concurrent.Future<I> input, Function<? super I,? extends O> function)LikeFutures.transform(ListenableFuture, Function, Executor)except that the transformationfunctionis invoked on each call toget()on the returned future.static ListeningExecutorServiceMoreExecutors. listeningDecorator(java.util.concurrent.ExecutorService delegate)Creates anExecutorServicewhosesubmitandinvokeAllmethods submitListenableFutureTaskinstances to the given delegate executor.static ListeningScheduledExecutorServiceMoreExecutors. listeningDecorator(java.util.concurrent.ScheduledExecutorService delegate)Creates aScheduledExecutorServicewhosesubmitandinvokeAllmethods submitListenableFutureTaskinstances to the given delegate executor.static ListeningExecutorServiceMoreExecutors. newDirectExecutorService()Creates an executor service that runs each task in the thread that invokesexecute/submit, as inThreadPoolExecutor.CallerRunsPolicy.static java.util.concurrent.ExecutorMoreExecutors. newSequentialExecutor(java.util.concurrent.Executor delegate)Returns anExecutorthat runs each task executed sequentially, such that no two tasks are running concurrently.static java.util.concurrent.ThreadFactoryMoreExecutors. platformThreadFactory()Returns a default thread factory used to create new threads.static <E> voidUninterruptibles. putUninterruptibly(java.util.concurrent.BlockingQueue<E> queue, E element)Invokesqueue.put(element)uninterruptibly.static <O extends @Nullable java.lang.Object>
ListenableFuture<O>Futures. scheduleAsync(AsyncCallable<O> callable, long delay, java.util.concurrent.TimeUnit timeUnit, java.util.concurrent.ScheduledExecutorService executorService)Schedulescallableon the specifiedexecutor, returning aFuture.static booleanMoreExecutors. shutdownAndAwaitTermination(java.util.concurrent.ExecutorService service, long timeout, java.util.concurrent.TimeUnit unit)Shuts down the given executor service gradually, first disabling new submissions and later, if necessary, cancelling remaining tasks.static voidUninterruptibles. sleepUninterruptibly(long sleepFor, java.util.concurrent.TimeUnit unit)Invokesunit.sleep(sleepFor)uninterruptibly.static <E> EUninterruptibles. takeUninterruptibly(java.util.concurrent.BlockingQueue<E> queue)Invokesqueue.take()uninterruptibly.static booleanUninterruptibles. tryAcquireUninterruptibly(java.util.concurrent.Semaphore semaphore, int permits, long timeout, java.util.concurrent.TimeUnit unit)Invokessemaphore.tryAcquire(permits, timeout, unit)uninterruptibly.static booleanUninterruptibles. tryAcquireUninterruptibly(java.util.concurrent.Semaphore semaphore, long timeout, java.util.concurrent.TimeUnit unit)Invokessemaphore.tryAcquire(1, timeout, unit)uninterruptibly.static booleanUninterruptibles. tryLockUninterruptibly(java.util.concurrent.locks.Lock lock, long timeout, java.util.concurrent.TimeUnit unit)Invokeslock.tryLock(timeout, unit)uninterruptibly.FluentFuture<V>FluentFuture. withTimeout(long timeout, java.util.concurrent.TimeUnit unit, java.util.concurrent.ScheduledExecutorService scheduledExecutor)Returns a future that delegates to this future but will finish early (via aTimeoutExceptionwrapped in anExecutionException) if the specified timeout expires.static <V extends @Nullable java.lang.Object>
ListenableFuture<V>Futures. withTimeout(ListenableFuture<V> delegate, long time, java.util.concurrent.TimeUnit unit, java.util.concurrent.ScheduledExecutorService scheduledExecutor)Returns a future that delegates to another but will finish early (via aTimeoutExceptionwrapped in anExecutionException) if the specified duration expires.
-