Uses of Annotation Interface
com.google.common.annotations.GwtIncompatible
Packages that use GwtIncompatible
Package
Description
Basic utility libraries and interfaces.
Discouraged (in favor of Caffeine) caching utilities.
Collection interfaces and implementations, and other utilities for collections.
Hash functions and related structures.
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.Testing utilities.
Concurrency utilities.
-
Uses of GwtIncompatible in com.google.common.base
Classes in com.google.common.base with annotations of type GwtIncompatibleModifier and TypeClassDescriptionprivate static final classFast matcher using aBitSettable of matching characters.final classThis class provides default values for all Java types, as defined by the JLS.final classUtility methods for working withEnuminstances.private static final classEnums.StringConverter<T extends Enum<T>>classPhantom reference with afinalizeReferent()method which a background thread invokes after the garbage collector reclaims the referent.interfaceImplemented by references that have code to run after garbage collection of their referents.classA reference queue with an associated background thread that dequeues references and invokesFinalizableReference.finalizeReferent()on them.classSoft reference with afinalizeReferent()method which a background thread invokes after the garbage collector reclaims the referent.classWeak reference with afinalizeReferent()method which a background thread invokes after the garbage collector reclaims the referent.(package private) final classWrappers aroundBuffermethods that are covariantly overridden in Java 9+.(package private) final classA regex pattern implementation which is backed by thePattern.(package private) interfacePluggable interface for compiling a regex pattern.private static classprivate static classprivate static classprivate static class(package private) final classAn immutable version of CharMatcher for smallish sets of characters that uses a hash table with linear probing to check for matches.enumRepresents a standard system property.Fields in com.google.common.base with annotations of type GwtIncompatibleModifier and TypeFieldDescriptionEnums.enumConstantCacheprivate static final MethodThrowables.getStackTraceDepthMethodThe "getStackTraceDepth" method, only available on some JDKs so we use reflection to find it when available.private static final MethodThrowables.getStackTraceElementMethodThe "getStackTraceElementMethod" method, only available on some JDKs so we use reflection to find it when available.private static final StringThrowables.JAVA_LANG_ACCESS_CLASSNAMEJavaLangAccess class name to load using reflectionprivate static final ObjectThrowables.jlaAccess to some fancy internal JVM internals.(package private) static final StringThrowables.SHARED_SECRETS_CLASSNAMESharedSecrets class name to load using reflectionstatic final CharsetCharsets.US_ASCIIUS-ASCII: seven-bit ASCII, the Basic Latin block of the Unicode character set (ISO646-US).static final CharsetCharsets.UTF_16UTF-16: sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark.static final CharsetCharsets.UTF_16BEUTF-16BE: sixteen-bit UCS Transformation Format, big-endian byte order.static final CharsetCharsets.UTF_16LEUTF-16LE: sixteen-bit UCS Transformation Format, little-endian byte order.Methods in com.google.common.base with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionstatic Predicate<CharSequence>Returns a predicate that evaluates totrueif theCharSequencebeing tested contains any match for the given regular expression pattern.static Predicate<CharSequence>Predicates.containsPattern(String pattern) Returns a predicate that evaluates totrueif theCharSequencebeing tested contains any match for the given regular expression pattern.Stopwatch.elapsed()Returns the current elapsed time shown on this stopwatch as aDuration.static <X extends Throwable>
XThrowables.getCauseAs(Throwable throwable, Class<X> expectedCauseType) Returnsthrowable's cause, cast toexpectedCauseType.(package private) static <T extends Enum<T>>
Map<String,WeakReference<? extends Enum<?>>> Enums.getEnumConstants(Class<T> enumClass) static FieldReturns theFieldin whichenumValueis defined.private static MethodThrowables.getGetMethod()Returns the Method that can be used to resolve an individual StackTraceElement, or null if that method cannot be found (it is only to be found in fairly recent JDKs).private static ObjectThrowables.getJLA()Returns the JavaLangAccess class that is present in all Sun JDKs.private static MethodThrowables.getJlaMethod(String name, Class<?>... parameterTypes) private static MethodThrowables.getSizeMethod(Object jla) Returns the Method that can be used to return the size of a stack, or null if that method cannot be found (it is only to be found in fairly recent JDKs).static StringThrowables.getStackTraceAsString(Throwable throwable) Returns a string containing the result oftoString(), followed by the full, recursive stack trace ofthrowable.static <T> Predicate<T>Predicates.instanceOf(Class<?> clazz) Returns a predicate that evaluates totrueif the object being tested is an instance of the given class.private static ObjectThrowables.invokeAccessibleNonThrowingMethod(Method method, Object receiver, Object... params) private static booleanCharMatcher.isSmall(int totalCharacters, int tableLength) private static List<StackTraceElement>Throwables.jlaStackTrace(Throwable t) static List<StackTraceElement>Throwables.lazyStackTrace(Throwable throwable) Deprecated.static booleanThrowables.lazyStackTraceIsLazy()Deprecated.This method always returns false on JDK versions past JDK 8 and on all Android versions.static SplitterReturns a splitter that considers any subsequence matchingpatternto be a separator.static SplitterReturns a splitter that considers any subsequence matching a given pattern (regular expression) to be a separator.private static <T extends Enum<T>>
Map<String,WeakReference<? extends Enum<?>>> Enums.populateCache(Class<T> enumClass) (package private) CharMatcherCharMatcher.precomputedInternal()This is the actual implementation ofCharMatcher.precomputed(), but we bounce calls through a method onPlatformso that we can have different behavior in GWT.private static CharMatcherCharMatcher.precomputedPositive(int totalCharacters, BitSet table, String description) Helper method forCharMatcher.precomputedInternal()that doesn't test if the negation is cheaper.static RuntimeExceptionDeprecated.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 Throwable>
voidThrowables.propagateIfInstanceOf(Throwable throwable, Class<X> declaredType) Deprecated.UseThrowables.throwIfInstanceOf(java.lang.Throwable, java.lang.Class<X>), which has the same behavior but rejectsnull.static voidThrowables.propagateIfPossible(Throwable throwable) Deprecated.UseThrowables.throwIfUnchecked(java.lang.Throwable), which has the same behavior but rejectsnull.static <X extends Throwable>
voidThrowables.propagateIfPossible(Throwable throwable, Class<X> declaredType) Propagatesthrowableexactly as-is, if and only if it is an instance ofRuntimeException,Error, ordeclaredType.Throwables.propagateIfPossible(Throwable throwable, Class<X1> declaredType1, Class<X2> declaredType2) Propagatesthrowableexactly as-is, if and only if it is an instance ofRuntimeException,Error,declaredType1, ordeclaredType2.(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) voidSets bits intablematched by this matcher.(package private) voidEnums.stringConverter(Class<T> enumClass) Returns a serializable converter that converts between strings andenumvalues of typeenumClassusingEnum.valueOf(Class, String)andEnum.name().Returns a predicate that evaluates totrueif the class being tested is assignable to (is a subtype of)clazz.static <X extends Throwable>
voidThrowables.throwIfInstanceOf(Throwable throwable, 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 GwtIncompatibleModifier and TypeClassDescriptionclassAbstractLoadingCache<K,V> This class provides a skeletal implementation of theCacheinterface to minimize the effort required to implement this interface.final classA specification of aCacheBuilderconfiguration.classForwardingCache<K,V> A cache which forwards all its method calls to another cache.classA cache which forwards all its method calls to another cache.(package private) interfaceReferenceEntry<K,V> An entry in a reference map.final classA collection of common removal listeners.(package private) classA package-local class holding common representation and mechanics for classes supporting dynamic striping on 64bit values.Methods in com.google.common.cache with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionstatic <K,V> CacheLoader<K, V> CacheLoader.asyncReloading(CacheLoader<K, V> loader, Executor executor) Returns aCacheLoaderwhich wrapsloader, executing calls toCacheLoader.reload(K, V)usingexecutor.LocalCache.entrySet()CacheBuilder.expireAfterAccess(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.expireAfterWrite(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<Object,Object> CacheBuilder.from(CacheBuilderSpec spec) Constructs a newCacheBuilderinstance with the settings specified inspec.static CacheBuilder<Object,Object> Constructs a newCacheBuilderinstance with the settings specified inspec.(package private) CacheBuilder<K,V> CacheBuilder.keyEquivalence(Equivalence<Object> equivalence) Sets a customEquivalencestrategy for comparing keys.(package private) CacheBuilder<K,V> CacheBuilder.lenientParsing()Enables lenient parsing.CacheBuilder.maximumWeight(long maximumWeight) Specifies the maximum weight of entries the cache may contain.CacheBuilder.refreshAfterWrite(long duration, 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.refreshAfterWrite(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.Computes or retrieves a replacement value corresponding to an already-cachedkey.CacheBuilder.softValues()Specifies that each value (not key) stored in the cache should be wrapped in aSoftReference(by default, strong references are used).private static longCacheBuilder.toNanosSaturated(Duration duration) Returns the number of nanoseconds of the given duration without throwing or overflowing.(package private) CacheBuilder<K,V> CacheBuilder.valueEquivalence(Equivalence<Object> equivalence) Sets a customEquivalencestrategy for comparing values.CacheBuilder.weakKeys()Specifies that each key (not value) stored in the cache should be wrapped in aWeakReference(by default, strong references are used).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> 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 GwtIncompatibleModifier and TypeClassDescription(package private) classAbstractNavigableMap<K,V> Skeletal implementation ofNavigableMap.(package private) classAbstractRangeSet<C extends Comparable>A skeletal implementation ofRangeSet.(package private) final classHelper classes and static methods for implementing compact hash-based collections.(package private) classCompactHashMap<K,V> CompactHashMap is an implementation of a Map.(package private) classCompactHashSet is an implementation of a Set.(package private) classCompactLinkedHashMap<K,V> CompactLinkedHashMap is an implementation of a Map with insertion or LRU iteration order, maintained with a doubly linked list through the entries.(package private) classCompactLinkedHashSet is an implementation of a Set, which a predictable iteration order that matches the insertion order.final classA multiset that supports concurrent modifications and that provides atomic versions of mostMultisetoperations (exceptions where noted).(package private) final classA descending wrapper around anImmutableSortedMultiset(package private) final classSkeletal implementation ofImmutableSortedSet.descendingSet().private static final classEmptyContiguousSet.SerializedForm<C extends Comparable>classDeprecated.This class has moved tocom.google.common.util.concurrent.classA deque which forwards all its method calls to another deque.classA navigable map which forwards all its method calls to another navigable map.classA navigable set which forwards all its method calls to another navigable set.(package private) static classSerialized form that leads to the same performance as the original list.final classAClassToInstanceMapwhose contents will never change, with many other important properties detailed atImmutableCollection.(package private) classImmutableMapEntry<K,V> Implementation ofEntryforImmutableMapthat adds extra methods to traverse hash buckets for the key and the value.private static classprivate static classprivate static class(package private) static classprivate static final class(package private) static classclassImmutableRangeMap<K extends Comparable<?>,V> ARangeMapwhose contents will never change, with many other important properties detailed atImmutableCollection.final classImmutableRangeSet<C extends Comparable>ARangeSetwhose contents will never change, with many other important properties detailed atImmutableCollection.private static final classclassASortedMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.interfaceInterner<E>Provides similar behavior toString.intern()for any immutable type.final classContains static methods pertaining to instances ofInterner.(package private) classMapMakerInternalMap<K,V, E extends MapMakerInternalMap.InternalEntry<K, V, E>, S extends MapMakerInternalMap.Segment<K, V, E, S>> The concurrent hash map implementation built byMapMaker.(package private) static classMaps.DescendingMap<K,V> private static classprivate static final class(package private) static classMaps.NavigableKeySet<K,V> private static classMaps.TransformedEntriesNavigableMap<K,V1, V2> (package private) static classfinal classA mutable class-to-instance map backed by an arbitrary user-provided map.interfaceRangeMap<K extends Comparable,V> A mapping from disjoint nonempty ranges to non-null values.interfaceRangeSet<C extends Comparable>private static final classRegularContiguousSet.SerializedForm<C extends Comparable>private static classprivate static class(package private) final classAn immutable sorted multiset with one or more distinct elements.(package private) final classProvides static methods for serializing collection classes.(package private) static classprivate static class(package private) interfaceSuperinterface ofSortedMultisetto introduce a bridge method forelementSet(), to ensure binary compatibility with older Guava versions that specifiedelementSet()to returnSortedSet.(package private) static classA skeleton navigable implementation forSortedMultiset.elementSet().(package private) static final class(package private) static final class(package private) static final classfinal classTreeRangeMap<K extends Comparable,V> An implementation ofRangeMapbased on aTreeMap, supporting all optional operations.classTreeRangeSet<C extends Comparable<?>>Fields in com.google.common.collect with annotations of type GwtIncompatibleModifier and TypeFieldDescription(package private) ImmutableSortedSet<E>ImmutableSortedSet.descendingSetprivate static final longAbstractBiMap.Inverse.serialVersionUIDprivate static final longAbstractBiMap.serialVersionUIDprivate static final longAbstractMapBasedMultiset.serialVersionUIDprivate static final longArrayListMultimap.serialVersionUIDprivate static final longEnumBiMap.serialVersionUIDprivate static final longEnumHashBiMap.serialVersionUIDprivate static final longEnumMultiset.serialVersionUIDprivate static final longHashBiMap.serialVersionUIDprivate static final longHashMultimap.serialVersionUIDprivate static final longHashMultiset.serialVersionUIDprivate static final longImmutableListMultimap.serialVersionUIDprivate static final longImmutableSetMultimap.serialVersionUIDprivate static final longLinkedHashMultimap.serialVersionUIDprivate static final longLinkedHashMultiset.serialVersionUIDprivate static final longLinkedListMultimap.serialVersionUIDprivate static final longMultimaps.CustomListMultimap.serialVersionUIDprivate static final longMultimaps.CustomMultimap.serialVersionUIDprivate static final longMultimaps.CustomSetMultimap.serialVersionUIDprivate static final longMultimaps.CustomSortedSetMultimap.serialVersionUIDprivate static final longSynchronized.SynchronizedObject.serialVersionUIDprivate static final longTreeMultimap.serialVersionUIDprivate static final longTreeMultiset.serialVersionUIDprivate static final Collector<Range<Comparable<?>>,?, ImmutableRangeSet<Comparable<?>>> CollectCollectors.TO_IMMUTABLE_RANGE_SETMethods in com.google.common.collect with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionstatic <K,V> NavigableMap<K, V> Maps.asMap(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.Sets.complementOf(Collection<E> collection) Creates anEnumSetconsisting of all enum values that are not in the specified collection.Sets.complementOf(Collection<E> collection, Class<E> type) Creates anEnumSetconsisting of all enum values that are not in the specified collection.static <T> T[]Returns a new array that contains the concatenated contents of two arrays.(package private) intImmutableMapEntrySet.RegularEntrySet.copyIntoArray(Object[] dst, int offset) (package private) intImmutableMultimap.Values.copyIntoArray(Object[] dst, int offset) (package private) intImmutableMultiset.copyIntoArray(Object[] dst, int offset) (package private) intIndexedImmutableSet.copyIntoArray(Object[] dst, int offset) (package private) intRegularImmutableAsList.copyIntoArray(Object[] dst, int offset) (package private) ImmutableSortedSet<C>ContiguousSet.createDescendingSet()(package private) ImmutableSortedSet<E>DescendingImmutableSortedSet.createDescendingSet()(package private) ImmutableSortedSet<C>EmptyContiguousSet.createDescendingSet()(package private) abstract ImmutableSortedSet<E>ImmutableSortedSet.createDescendingSet()DescendingImmutableSortedSet.descendingIterator()EmptyContiguousSet.descendingIterator()ImmutableRangeSet.AsSet.descendingIterator()abstract UnmodifiableIterator<E>ImmutableSortedSet.descendingIterator()RegularContiguousSet.descendingIterator()RegularImmutableSortedSet.descendingIterator()DescendingImmutableSortedSet.descendingSet()ImmutableSortedSet.descendingSet()static <E> intQueues.drain(BlockingQueue<E> q, Collection<? super E> buffer, int numElements, long timeout, TimeUnit unit) Drains the queue asBlockingQueue.drainTo(Collection, int), but if the requestednumElementselements are not available, it will wait for them up to the specified timeout.static <E> intQueues.drain(BlockingQueue<E> q, Collection<? super E> buffer, int numElements, Duration timeout) Drains the queue asBlockingQueue.drainTo(Collection, int), but if the requestednumElementselements are not available, it will wait for them up to the specified timeout.static <E> intQueues.drainUninterruptibly(BlockingQueue<E> q, Collection<? super E> buffer, int numElements, long timeout, TimeUnit unit) Drains the queue as Queues.drain(BlockingQueue, Collection, int, long, TimeUnit), but with a different behavior in case it is interrupted while waiting.static <E> intQueues.drainUninterruptibly(BlockingQueue<E> q, Collection<? super E> buffer, int numElements, Duration timeout) Drains the queue as Queues.drain(BlockingQueue, Collection, int, Duration), but with a different behavior in case it is interrupted while waiting.final <T> FluentIterable<T>Returns the elements from this fluent iterable that are instances of classtype.static <T> Iterable<T>Returns a view ofunfilteredcontaining all elements that are of the typedesiredType.static <T> UnmodifiableIterator<T>Returns a view ofunfilteredcontaining all elements that are of the typedesiredType.static <E> NavigableSet<E>Sets.filter(NavigableSet<E> unfiltered, Predicate<? super E> predicate) Returns the elements of aNavigableSet,unfiltered, that satisfy a predicate.static <K,V> NavigableMap<K, V> Maps.filterEntries(NavigableMap<K, V> unfiltered, Predicate<? super Map.Entry<K, V>> entryPredicate) Returns a sorted map containing the mappings inunfilteredthat satisfy a predicate.private static <K,V> NavigableMap<K, V> Maps.filterFiltered(Maps.FilteredEntryNavigableMap<K, V> map, Predicate<? super Map.Entry<K, V>> entryPredicate) Supportclear(),removeAll(), andretainAll()when filtering a filtered navigable map.static <K,V> NavigableMap<K, V> Maps.filterKeys(NavigableMap<K, V> unfiltered, Predicate<? super K> keyPredicate) Returns a navigable map containing the mappings inunfilteredwhose keys satisfy a predicate.static <K,V> NavigableMap<K, V> Maps.filterValues(NavigableMap<K, V> unfiltered, Predicate<? super V> valuePredicate) Returns a navigable map containing the mappings inunfilteredwhose values satisfy a predicate.voidvoidstatic ImmutableMap<String,String> Maps.fromProperties(Properties properties) Creates anImmutableMap<String, String>from aPropertiesinstance.(package private) intint(package private) int(package private) booleanEmptyContiguousSet.isHashCodeFast()(package private) booleanImmutableMapEntrySet.isHashCodeFast()(package private) MapMakerMapMaker.keyEquivalence(Equivalence<Object> equivalence) Sets a customEquivalencestrategy for comparing keys.EnumBiMap.keyType()Returns the associated key type.EnumHashBiMap.keyType()Returns the associated key type.intImmutableSortedAsList.lastIndexOf(Object target) Sets.makeComplementByHand(Collection<E> collection, Class<E> type) (package private) static <K,V> NavigableMap<K, V> Synchronized.navigableMap(NavigableMap<K, V> navigableMap) (package private) static <K,V> NavigableMap<K, V> Synchronized.navigableMap(NavigableMap<K, V> navigableMap, Object mutex) (package private) static <E> NavigableSet<E>Synchronized.navigableSet(NavigableSet<E> navigableSet) (package private) static <E> NavigableSet<E>Synchronized.navigableSet(NavigableSet<E> navigableSet, Object mutex) static <T> T[]Returns a new array of the given length with the specified component type.static <E> ArrayBlockingQueue<E>Queues.newArrayBlockingQueue(int capacity) Creates an emptyArrayBlockingQueuewith the given (fixed) capacity and nonfair access policy.static <E> ConcurrentLinkedQueue<E>Queues.newConcurrentLinkedQueue()Creates an emptyConcurrentLinkedQueue.static <E> ConcurrentLinkedQueue<E>Queues.newConcurrentLinkedQueue(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> CopyOnWriteArrayList<E>Lists.newCopyOnWriteArrayList()Creates an emptyCopyOnWriteArrayListinstance.static <E> CopyOnWriteArrayList<E>Lists.newCopyOnWriteArrayList(Iterable<? extends E> elements) Creates aCopyOnWriteArrayListinstance containing the given elements.static <E> CopyOnWriteArraySet<E>Sets.newCopyOnWriteArraySet()Creates an emptyCopyOnWriteArraySetinstance.static <E> CopyOnWriteArraySet<E>Sets.newCopyOnWriteArraySet(Iterable<? extends E> elements) Creates aCopyOnWriteArraySetinstance containing the given elements.static <E> LinkedBlockingDeque<E>Queues.newLinkedBlockingDeque()Creates an emptyLinkedBlockingDequewith a capacity ofInteger.MAX_VALUE.static <E> LinkedBlockingDeque<E>Queues.newLinkedBlockingDeque(int capacity) Creates an emptyLinkedBlockingDequewith the given (fixed) capacity.static <E> LinkedBlockingDeque<E>Queues.newLinkedBlockingDeque(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> LinkedBlockingQueue<E>Queues.newLinkedBlockingQueue()Creates an emptyLinkedBlockingQueuewith a capacity ofInteger.MAX_VALUE.static <E> LinkedBlockingQueue<E>Queues.newLinkedBlockingQueue(int capacity) Creates an emptyLinkedBlockingQueuewith the given (fixed) capacity.static <E> LinkedBlockingQueue<E>Queues.newLinkedBlockingQueue(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 Comparable>
PriorityBlockingQueue<E>Queues.newPriorityBlockingQueue()Creates an emptyPriorityBlockingQueuewith the ordering given by its elements' natural ordering.static <E extends Comparable>
PriorityBlockingQueue<E>Queues.newPriorityBlockingQueue(Iterable<? extends E> elements) Creates aPriorityBlockingQueuecontaining the given elements.static <E> 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.private static <K,V> Map.Entry<K, V> Synchronized.nullableSynchronizedEntry(Map.Entry<K, V> entry, Object mutex) final EImmutableSortedSet.pollFirst()Deprecated.Unsupported operation.final EImmutableSortedSet.pollLast()Deprecated.Unsupported operation.private voidAbstractBiMap.Inverse.readObject(ObjectInputStream stream) private voidArrayListMultimap.readObject(ObjectInputStream stream) private voidEmptyContiguousSet.readObject(ObjectInputStream stream) private voidEnumBiMap.readObject(ObjectInputStream stream) private voidEnumHashBiMap.readObject(ObjectInputStream stream) private voidEnumMultiset.readObject(ObjectInputStream stream) private voidHashBiMap.Inverse.readObject(ObjectInputStream in) private voidHashBiMap.readObject(ObjectInputStream stream) private voidHashMultimap.readObject(ObjectInputStream stream) private voidHashMultiset.readObject(ObjectInputStream stream) private voidImmutableAsList.readObject(ObjectInputStream stream) private voidImmutableListMultimap.readObject(ObjectInputStream stream) private voidImmutableMapEntrySet.readObject(ObjectInputStream stream) private voidImmutableMultimap.Keys.readObject(ObjectInputStream stream) private voidImmutableMultiset.EntrySet.readObject(ObjectInputStream stream) private voidImmutableMultiset.readObject(ObjectInputStream stream) private voidImmutableSetMultimap.readObject(ObjectInputStream stream) private voidImmutableTable.readObject(ObjectInputStream stream) private voidLinkedHashMultimap.readObject(ObjectInputStream stream) private voidLinkedHashMultiset.readObject(ObjectInputStream stream) private voidLinkedListMultimap.readObject(ObjectInputStream stream) private voidMultimaps.CustomListMultimap.readObject(ObjectInputStream stream) private voidMultimaps.CustomMultimap.readObject(ObjectInputStream stream) private voidMultimaps.CustomSetMultimap.readObject(ObjectInputStream stream) private voidMultimaps.CustomSortedSetMultimap.readObject(ObjectInputStream stream) private voidRegularContiguousSet.readObject(ObjectInputStream stream) private voidTreeMultimap.readObject(ObjectInputStream stream) private voidTreeMultiset.readObject(ObjectInputStream stream) private voidAbstractMapBasedMultiset.readObjectNoData()(package private) ObjectAbstractBiMap.Inverse.readResolve()private static <E> NavigableSet<E>Maps.removeOnlyNavigableSet(NavigableSet<E> set) (package private) ImmutableList<E>ImmutableSortedAsList.subListUnchecked(int fromIndex, int toIndex) static <K extends Comparable<? super K>,V>
NavigableMap<K,V> Maps.subMap(NavigableMap<K, V> map, Range<K> range) Returns a view of the portion ofmapwhose keys are contained byrange.static <K extends Comparable<? super K>>
NavigableSet<K>Sets.subSet(NavigableSet<K> set, Range<K> range) Returns a view of the portion ofsetwhose elements are contained byrange.static <K,V> NavigableMap<K, V> Maps.synchronizedNavigableMap(NavigableMap<K, V> navigableMap) Returns a synchronized (thread-safe) navigable map backed by the specified navigable map.static <E> NavigableSet<E>Sets.synchronizedNavigableSet(NavigableSet<E> navigableSet) Returns a synchronized (thread-safe) navigable set backed by the specified navigable set.V[][]Returns a two-dimensional array with the table contents.final E[]Returns an array containing all of the elements from this fluent iterable in iteration order.static <T> T[]Copies an iterable's elements into an array.static <T> T[]Copies an iterator's elements into an array.(package private) static <T,K extends Comparable<? super K>, V>
Collector<T,?, ImmutableRangeMap<K, V>> CollectCollectors.toImmutableRangeMap(Function<? super T, Range<K>> keyFunction, Function<? super T, ? extends V> valueFunction) (package private) static <E extends Comparable<? super E>>
Collector<Range<E>,?, ImmutableRangeSet<E>> CollectCollectors.toImmutableRangeSet()static <K,V1, V2> NavigableMap<K, V2> Maps.transformEntries(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,V1, V2> NavigableMap<K, V2> Maps.transformValues(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,V> NavigableMap<K, V> Maps.unmodifiableNavigableMap(NavigableMap<K, ? extends V> map) Returns an unmodifiable view of the specified navigable map.EnumBiMap.valueType()Returns the associated value type.Interners.InternerBuilder.weak()Instructs theInterners.InternerBuilderto build a weak interner.MapMaker.weakKeys()Specifies that each key (not value) stored in the map should be wrapped in aWeakReference(by default, strong references are used).MapMaker.weakValues()Specifies that each value (not key) stored in the map should be wrapped in aWeakReference(by default, strong references are used).private voidAbstractBiMap.Inverse.writeObject(ObjectOutputStream stream) private voidArrayListMultimap.writeObject(ObjectOutputStream stream) private voidEnumBiMap.writeObject(ObjectOutputStream stream) private voidEnumHashBiMap.writeObject(ObjectOutputStream stream) private voidEnumMultiset.writeObject(ObjectOutputStream stream) private voidHashBiMap.writeObject(ObjectOutputStream stream) private voidHashMultimap.writeObject(ObjectOutputStream stream) private voidHashMultiset.writeObject(ObjectOutputStream stream) private voidImmutableListMultimap.writeObject(ObjectOutputStream stream) private voidImmutableSetMultimap.writeObject(ObjectOutputStream stream) private voidLinkedHashMultimap.writeObject(ObjectOutputStream stream) private voidLinkedHashMultiset.writeObject(ObjectOutputStream stream) private voidLinkedListMultimap.writeObject(ObjectOutputStream stream) private voidMultimaps.CustomListMultimap.writeObject(ObjectOutputStream stream) private voidMultimaps.CustomMultimap.writeObject(ObjectOutputStream stream) private voidMultimaps.CustomSetMultimap.writeObject(ObjectOutputStream stream) private voidMultimaps.CustomSortedSetMultimap.writeObject(ObjectOutputStream stream) private voidSynchronized.SynchronizedObject.writeObject(ObjectOutputStream stream) private voidTreeMultimap.writeObject(ObjectOutputStream stream) private voidTreeMultiset.writeObject(ObjectOutputStream stream) (package private) ObjectContiguousSet.writeReplace()(package private) ObjectDenseImmutableTable.Column.writeReplace()(package private) ObjectDenseImmutableTable.ColumnMap.writeReplace()(package private) ObjectDenseImmutableTable.ImmutableArrayMap.writeReplace()(package private) ObjectDenseImmutableTable.Row.writeReplace()(package private) ObjectDenseImmutableTable.RowMap.writeReplace()(package private) ObjectDenseImmutableTable.writeReplace()(package private) ObjectEmptyContiguousSet.writeReplace()(package private) ObjectImmutableAsList.writeReplace()(package private) ObjectImmutableCollection.writeReplace()(package private) ObjectImmutableList.ReverseImmutableList.writeReplace()(package private) ObjectImmutableList.SubList.writeReplace()(package private) ObjectImmutableList.writeReplace()(package private) ObjectImmutableMap.IteratorBasedImmutableMap.writeReplace()(package private) ObjectImmutableMap.MapViewOfValuesAsSingletonSets.writeReplace()(package private) ObjectImmutableMapEntrySet.RegularEntrySet.writeReplace()(package private) ObjectImmutableMapEntrySet.writeReplace()(package private) ObjectImmutableMapKeySet.writeReplace()(package private) ObjectImmutableMapValues.writeReplace()(package private) ObjectImmutableMultimap.EntryCollection.writeReplace()(package private) ObjectImmutableMultimap.Keys.writeReplace()(package private) ObjectImmutableMultimap.Values.writeReplace()(package private) ObjectImmutableMultiset.ElementSet.writeReplace()(package private) ObjectImmutableMultiset.EntrySet.writeReplace()(package private) ObjectImmutableMultiset.writeReplace()(package private) ObjectImmutableSet.CachingAsList.writeReplace()(package private) ObjectImmutableSet.Indexed.writeReplace()(package private) ObjectImmutableSetMultimap.EntrySet.writeReplace()(package private) ObjectImmutableSortedAsList.writeReplace()(package private) abstract ObjectImmutableTable.writeReplace()(package private) ObjectIndexedImmutableSet.writeReplace()(package private) ObjectJdkBackedImmutableBiMap.InverseEntries.writeReplace()(package private) ObjectJdkBackedImmutableBiMap.writeReplace()(package private) ObjectJdkBackedImmutableMap.writeReplace()(package private) ObjectJdkBackedImmutableMultiset.writeReplace()(package private) ObjectJdkBackedImmutableSet.writeReplace()(package private) ObjectLists.StringAsImmutableList.writeReplace()(package private) ObjectRegularContiguousSet.writeReplace()(package private) ObjectRegularImmutableAsList.writeReplace()(package private) ObjectRegularImmutableBiMap.Inverse.InverseEntrySet.writeReplace()(package private) ObjectRegularImmutableBiMap.Inverse.writeReplace()(package private) ObjectRegularImmutableBiMap.writeReplace()(package private) ObjectRegularImmutableList.writeReplace()(package private) ObjectRegularImmutableMap.KeySet.writeReplace()(package private) ObjectRegularImmutableMap.Values.writeReplace()(package private) ObjectRegularImmutableMap.writeReplace()(package private) ObjectRegularImmutableMultiset.writeReplace()(package private) ObjectRegularImmutableSet.writeReplace()(package private) ObjectRegularImmutableSortedSet.writeReplace()(package private) ObjectRegularImmutableTable.CellSet.writeReplace()(package private) ObjectRegularImmutableTable.Values.writeReplace()(package private) abstract ObjectRegularImmutableTable.writeReplace()(package private) ObjectSingletonImmutableBiMap.writeReplace()(package private) ObjectSingletonImmutableList.writeReplace()(package private) ObjectSingletonImmutableSet.writeReplace()(package private) ObjectSingletonImmutableTable.writeReplace()(package private) ObjectSparseImmutableTable.writeReplace() -
Uses of GwtIncompatible in com.google.common.collect.testing
Classes in com.google.common.collect.testing with annotations of type GwtIncompatibleModifier and TypeClassDescriptionclassAbstractCollectionTestSuiteBuilder<B extends AbstractCollectionTestSuiteBuilder<B,E>, E> Abstract superclass of all test-suite builders for collection interfaces.classConcrete instantiation ofAbstractCollectionTestSuiteBuilderfor testing collections that do not have a more specific tester likeListTestSuiteBuilderorSetTestSuiteBuilder.classCreates, based on your criteria, a JUnit test suite that exhaustively tests a ConcurrentMap implementation.classCreates, based on your criteria, a JUnit test suite that exhaustively tests a ConcurrentNavigableMap implementation.classFeatureSpecificTestSuiteBuilder<B extends FeatureSpecificTestSuiteBuilder<B,G>, G> Creates, based on your criteria, a JUnit test suite that exhaustively tests the object generated by a G, selecting appropriate tests by matching them against specified features.final classCreates, based on your criteria, a JUnit test suite that exhaustively tests a List implementation.classMapTestSuiteBuilder<K,V> Creates, based on your criteria, a JUnit test suite that exhaustively tests a Map implementation.classCreates, based on your criteria, a JUnit test suite that exhaustively tests a NavigableMap implementation.final classCreates, based on your criteria, a JUnit test suite that exhaustively tests a NavigableSet implementation.classPerCollectionSizeTestSuiteBuilder<B extends PerCollectionSizeTestSuiteBuilder<B,G, T, E>, G extends TestContainerGenerator<T, E>, T, E> This builder creates a composite test suite, containing a separate test suite for eachCollectionSizepresent in the features specified byFeatureSpecificTestSuiteBuilder.withFeatures(Feature...).final classCreates, based on your criteria, a JUnit test suite that exhaustively tests a queue implementation.classReserializes the sets created by another test set generator.classReserializes the sets created by another test set generator.final classSafeTreeMap<K,V> A wrapper aroundTreeMapthat aggressively checks to see if keys are mutually comparable.final classSafeTreeSet<E>A wrapper aroundTreeSetthat aggressively checks to see if elements are mutually comparable.classCreates, based on your criteria, a JUnit test suite that exhaustively tests a Set implementation.classCreates, based on your criteria, a JUnit test suite that exhaustively tests a SortedMap implementation.classCreates, based on your criteria, a JUnit test suite that exhaustively tests a SortedSet implementation.classclassclassclassMethods in com.google.common.collect.testing with annotations of type GwtIncompatible -
Uses of GwtIncompatible in com.google.common.collect.testing.features
Classes in com.google.common.collect.testing.features with annotations of type GwtIncompatibleModifier and TypeClassDescriptionclassUtilities for collecting and validating tester requirements from annotations. -
Uses of GwtIncompatible in com.google.common.collect.testing.google
Classes in com.google.common.collect.testing.google with annotations of type GwtIncompatibleModifier and TypeClassDescriptionclassCreates, based on your criteria, a JUnit test suite that exhaustively tests aBiMapimplementation.classCreates, based on your criteria, a JUnit test suite that exhaustively tests aListMultimapimplementation.classMultimapTestSuiteBuilder<K,V, M extends Multimap<K, V>> Creates, based on your criteria, a JUnit test suite that exhaustively tests aMultimapimplementation.classCreates, based on your criteria, a JUnit test suite that exhaustively tests aMultisetimplementation.static classstatic classstatic classclassCreates, based on your criteria, a JUnit test suite that exhaustively tests aSetMultimapimplementation.classCreates, based on your criteria, a JUnit test suite that exhaustively tests aSortedMultisetimplementation.classCreates, based on your criteria, a JUnit test suite that exhaustively tests aSortedSetMultimapimplementation.Methods in com.google.common.collect.testing.google with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionMultisetCountTester.getCountDuplicateInitializingMethods()ReturnsMethodinstances for the read tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them.MultisetElementSetTester.getElementSetDuplicateInitializingMethods()ReturnsMethodinstances for the read tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them.MultisetForEachEntryTester.getForEachEntryDuplicateInitializingMethods()ReturnsMethodinstances for the remove tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them.BiMapInverseTester.getInverseSameAfterSerializingMethods()ReturnsMethodinstances for the tests that assume that the inverse will be the same after serialization.MultisetIteratorTester.getIteratorDuplicateInitializingMethods()ReturnsMethodinstances for the tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them.private static Methodprivate static MethodMultisetRemoveTester.getRemoveDuplicateInitializingMethods()ReturnsMethodinstances for the remove tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them.AbstractMultisetSetCountTester.getSetCountDuplicateInitializingMethods()ReturnsMethodinstances for thesetCount()tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them. -
Uses of GwtIncompatible in com.google.common.collect.testing.testers
Classes in com.google.common.collect.testing.testers with annotations of type GwtIncompatibleModifier and TypeClassDescriptionclassA generic JUnit test which tests operations on a NavigableMap.classA generic JUnit test which tests operations on a NavigableSet.Methods in com.google.common.collect.testing.testers with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionstatic MethodCollectionAddAllTester.getAddAllNullUnsupportedMethod()Returns theMethodinstance forCollectionAddAllTester.testAddAll_nullUnsupported()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static MethodCollectionAddAllTester.getAddAllUnsupportedNonePresentMethod()Returns theMethodinstance forCollectionAddAllTester.testAddAll_unsupportedNonePresent()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()while we figure out what to do withConcurrentHashMapsupport forentrySet().add().static MethodCollectionAddAllTester.getAddAllUnsupportedSomePresentMethod()Returns theMethodinstance forCollectionAddAllTester.testAddAll_unsupportedSomePresent()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()while we figure out what to do withConcurrentHashMapsupport forentrySet().add().static MethodCollectionAddTester.getAddNullSupportedMethod()Returns theMethodinstance forCollectionAddTester.testAdd_nullSupported()so that tests ofCollections.checkedCollection(java.util.Collection, Class)can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6409434 is fixed.static MethodListAddAtIndexTester.getAddNullSupportedMethod()Returns theMethodinstance forListAddAtIndexTester.testAddAtIndex_nullSupported()so that tests can suppress it.static MethodCollectionAddTester.getAddNullUnsupportedMethod()Returns theMethodinstance forCollectionAddTester.testAdd_nullSupported()so that tests ofTreeSetcan suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static MethodListAddTester.getAddSupportedNullPresentMethod()Returns theMethodinstance forListAddTester.testAdd_supportedNullPresent()so that tests can suppress it.static MethodSetAddTester.getAddSupportedNullPresentMethod()Returns theMethodinstance forSetAddTester.testAdd_supportedNullPresent()so that tests can suppress it.static MethodCollectionAddTester.getAddUnsupportedNotPresentMethod()Returns theMethodinstance forCollectionAddTester.testAdd_unsupportedNotPresent()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()while we figure out what to do withConcurrentHashMapsupport forentrySet().add().static MethodMapEntrySetTester.getContainsEntryWithIncomparableKeyMethod()static MethodMapEntrySetTester.getContainsEntryWithIncomparableValueMethod()static MethodMapCreationTester.getCreateWithNullKeyUnsupportedMethod()Returns theMethodinstance forMapCreationTester.testCreateWithNullKeyUnsupported()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static MethodCollectionCreationTester.getCreateWithNullUnsupportedMethod()Returns theMethodinstance forCollectionCreationTester.testCreateWithNull_unsupported()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static MethodListHashCodeTester.getHashCodeMethod()Returns theMethodinstance forListHashCodeTester.testHashCode()so that list tests on unhashable objects can suppress it withFeatureSpecificTestSuiteBuilder.suppressing().static Method[]SetHashCodeTester.getHashCodeMethods()Returns theMethodinstances for the test methods in this class which callhashCode()on the set values so that set tests on unhashable objects can suppress it withFeatureSpecificTestSuiteBuilder.suppressing().static MethodListListIteratorTester.getListIteratorFullyModifiableMethod()Returns theMethodinstance forListListIteratorTester.testListIterator_fullyModifiable()so that tests ofCopyOnWriteArraySetcan suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6570575 is fixed.static MethodListListIteratorTester.getListIteratorUnmodifiableMethod()Returns theMethodinstance forListListIteratorTester.testListIterator_unmodifiable()so that it can be suppressed in GWT tests.static MethodMapMergeTester.getMergeNullValueMethod()Returns theMethodinstance forMapMergeTester.testMergeNullValue()so that tests ofHashtablecan suppress it withFeatureSpecificTestSuiteBuilder.suppressing().static MethodMapPutAllTester.getPutAllNullKeyUnsupportedMethod()Returns theMethodinstance forMapPutAllTester.testPutAll_nullKeyUnsupported()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static MethodMapPutTester.getPutNullKeyUnsupportedMethod()Returns theMethodinstance forMapPutTester.testPut_nullKeyUnsupported()so that tests ofTreeMapcan suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static MethodListSetTester.getSetNullSupportedMethod()Returns theMethodinstance forListSetTester.testSet_null()so that tests ofCollections.checkedCollection(java.util.Collection, Class)can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6409434 is fixed.static MethodMapEntrySetTester.getSetValueMethod()static MethodMapEntrySetTester.getSetValueWithNullValuesAbsentMethod()static MethodMapEntrySetTester.getSetValueWithNullValuesPresentMethod()static MethodCollectionSpliteratorTester.getSpliteratorNotImmutableCollectionAllowsAddMethod()static MethodCollectionSpliteratorTester.getSpliteratorNotImmutableCollectionAllowsRemoveMethod()static MethodListSubListTester.getSubListOriginalListSetAffectsSubListLargeListMethod()Returns theMethodinstance forListSubListTester.testSubList_originalListSetAffectsSubListLargeList()so that tests ofCopyOnWriteArrayListcan suppress them withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6570631 is fixed.static MethodListSubListTester.getSubListOriginalListSetAffectsSubListMethod()Returns theMethodinstance forListSubListTester.testSubList_originalListSetAffectsSubList()so that tests ofCopyOnWriteArrayListcan suppress them withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6570631 is fixed.static MethodListSubListTester.getSubListSubListRemoveAffectsOriginalLargeListMethod()Returns theMethodinstance forListSubListTester.testSubList_subListRemoveAffectsOriginalLargeList()so that tests ofCopyOnWriteArrayListcan suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6570575 is fixed.static MethodCollectionToArrayTester.getToArrayIsPlainObjectArrayMethod()Returns theMethodinstance forCollectionToArrayTester.testToArray_isPlainObjectArray()so that tests ofArrays.asList(Object[])can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6260652 is fixed. -
Uses of GwtIncompatible in com.google.common.hash
Classes in com.google.common.hash with annotations of type GwtIncompatibleModifier and TypeClassDescription(package private) final classWrappers aroundBuffermethods that are covariantly overridden in Java 9+.(package private) classA package-local class holding common representation and mechanics for classes supporting dynamic striping on 64bit values. -
Uses of GwtIncompatible in com.google.common.io
Classes in com.google.common.io with annotations of type GwtIncompatibleModifier and TypeClassDescription(package private) classWriter that places all output on anAppendabletarget.interfaceAn extension ofDataInputfor reading from in-memory byte arrays; its methods offer identical functionality but do not throwIOException.interfaceAn extension ofDataOutputfor writing to in-memory byte arrays; its methods offer identical functionality but do not throwIOException.interfaceA callback interface to process bytes from a stream.classA destination to which bytes can be written, such as a file.classA readable source of bytes, such as a file.final classProvides utility methods for working with byte arrays and I/O streams.(package private) final classAReaderthat reads the characters in aCharSequence.classA destination to which characters can be written, such as a text file.classA readable source of characters, such as a text file.final classProvides utility methods for working with character streams.final classUtility methods for working withCloseableobjects.final classfinal classAnInputStreamthat counts the number of bytes read.final classAn OutputStream that counts the number of bytes written.final classAnOutputStreamthat starts buffering to a byte array, but switches to file buffering once the data reaches a configurable size.final classProvides utility methods for working with files.enumModes for opening a file for writing.final classUtility methods for working withFlushableobjects.final classException indicating that a recursive delete can't be performed because the file system does not have the support necessary to guarantee that it is not vulnerable to race conditions that would allow it to delete files and directories outside of the directory being deleted (i.e.,SecureDirectoryStreamis not supported).(package private) final classWrappers aroundBuffermethods that are covariantly overridden in Java 9+.(package private) classPackage-protected abstract class that implements the line reading algorithm used byLineReader.interfaceA callback to be used with the streamingreadLinesmethods.final classA class for reading lines of text.final classAn implementation ofDataInputthat uses little-endian byte ordering for readingshort,int,float,double, andlongvalues.final classAn implementation ofDataOutputthat uses little-endian byte ordering for writingchar,short,int,float,double, andlongvalues.final class(package private) final classAnInputStreamthat concatenates multiple substreams.(package private) classAReaderthat concatenates multiple readers.final classFile name filter that only accepts files matching a regular expression.(package private) final classAnInputStreamthat converts characters from aReaderinto bytes using an arbitrary Charset.enumOptions for use with recursive delete methods (MoreFiles.deleteRecursively(java.nio.file.Path, com.google.common.io.RecursiveDeleteOption...)andMoreFiles.deleteDirectoryContents(java.nio.file.Path, com.google.common.io.RecursiveDeleteOption...)).final classProvides utility methods for working with resources in the classpath.(package private) classCreates temporary files and directories whose permissions are restricted to the current user or, in the case of Android, the current app.Methods in com.google.common.io with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionfinal ByteSourceBaseEncoding.decodingSource(CharSource encodedSource) Returns aByteSourcethat reads base-encoded bytes from the specifiedCharSource.abstract InputStreamBaseEncoding.decodingStream(Reader reader) Returns anInputStreamthat decodes base-encoded input from the specifiedReader.BaseEncoding.SeparatedBaseEncoding.decodingStream(Reader reader) BaseEncoding.StandardBaseEncoding.decodingStream(Reader reader) final ByteSinkBaseEncoding.encodingSink(CharSink encodedSink) Returns aByteSinkthat writes base-encoded bytes to the specifiedCharSink.abstract OutputStreamBaseEncoding.encodingStream(Writer writer) Returns anOutputStreamthat encodes bytes using this encoding into the specifiedWriter.BaseEncoding.SeparatedBaseEncoding.encodingStream(Writer output) BaseEncoding.StandardBaseEncoding.encodingStream(Writer out) (package private) static ReaderBaseEncoding.ignoringReader(Reader delegate, String toIgnore) (package private) static WriterBaseEncoding.separatingWriter(Writer delegate, String separator, int afterEveryChars) -
Uses of GwtIncompatible in com.google.common.math
Classes in com.google.common.math with annotations of type GwtIncompatibleModifier and TypeClassDescriptionclassA class for arithmetic onBigDecimalthat is not covered by its built-in methods.private static class(package private) final classUtilities fordoubleprimitives.classThe representation of a linear transformation between real numbersxandy.final classAn immutable value object capturing some basic statistics about a collection of paired double values (e.g.final classA mutable object which accumulates paired double values (e.g.final classProvides a fluent API for calculating quantiles.final classA 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.final classA mutable object which accumulates double values and tracks some basic statistics over all the values added so far.(package private) classToDoubleRounder<X extends Number & Comparable<X>>Fields in com.google.common.math with annotations of type GwtIncompatibleModifier and TypeFieldDescription(package private) static final long[]LongMath.halfPowersOf10(package private) static final long[]LongMath.powersOf10Methods in com.google.common.math with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionstatic 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.private static doubleDoubleMath.checkFinite(double argument) static BigIntegerBigIntegerMath.divide(BigInteger p, BigInteger q, RoundingMode mode) Returns the result of dividingpbyq, rounding using the specifiedRoundingMode.static longLongMath.divide(long p, long q, 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.(package private) static booleanBigIntegerMath.fitsInLong(BigInteger x) 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(BigInteger x, RoundingMode mode) Returns the base-10 logarithm ofx, rounded according to the specified rounding mode.static intIntMath.log10(int x, RoundingMode mode) Returns the base-10 logarithm ofx, rounded according to the specified rounding mode.static intLongMath.log10(long x, RoundingMode mode) Returns the base-10 logarithm ofx, rounded according to the specified rounding mode.(package private) static intLongMath.log10Floor(long x) static intDoubleMath.log2(double x, 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 doubleDeprecated.UseStats.meanOf(java.lang.Iterable<? extends java.lang.Number>)instead, noting the less strict handling of non-finite values.static doubleDeprecated.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.(package private) static doubleDoubleMath.roundIntermediate(double x, RoundingMode mode) static BigIntegerDoubleMath.roundToBigInteger(double x, RoundingMode mode) Returns theBigIntegervalue that is equal toxrounded with the specified rounding mode, if possible.static doubleBigIntegerMath.roundToDouble(BigInteger x, RoundingMode mode) Returnsx, rounded to adoublewith the specified rounding mode.static doubleLongMath.roundToDouble(long x, RoundingMode mode) Returnsx, rounded to adoublewith the specified rounding mode.static intDoubleMath.roundToInt(double x, RoundingMode mode) Returns theintvalue that is equal toxrounded with the specified rounding mode, if possible.static longDoubleMath.roundToLong(double x, RoundingMode mode) Returns thelongvalue that is equal toxrounded with the specified rounding mode, if possible.static BigIntegerBigIntegerMath.sqrt(BigInteger x, RoundingMode mode) Returns the square root ofx, rounded with the specified rounding mode.static intIntMath.sqrt(int x, RoundingMode mode) Returns the square root ofx, rounded with the specified rounding mode.static longLongMath.sqrt(long x, RoundingMode mode) Returns the square root ofx, rounded with the specified rounding mode.private static BigIntegerBigIntegerMath.sqrtApproxWithDoubles(BigInteger x) private static BigIntegerBigIntegerMath.sqrtFloor(BigInteger x) -
Uses of GwtIncompatible in com.google.common.net
Classes in com.google.common.net with annotations of type GwtIncompatibleModifier and TypeClassDescriptionfinal classA syntactically valid host specifier, suitable for use in a URI.final classStatic utility methods pertaining toInetAddressinstances. -
Uses of GwtIncompatible in com.google.common.primitives
Classes in com.google.common.primitives with annotations of type GwtIncompatibleModifier and TypeClassDescriptionfinal classStatic utility methods pertaining tobyteprimitives that interpret values as unsigned (that is, any negative valuebis treated as the positive value256 + b).Fields in com.google.common.primitives with annotations of type GwtIncompatibleModifier and TypeFieldDescription(package private) static final PatternDoubles.FLOATING_POINT_PATTERNThis is adapted from the regex suggested byDouble.valueOf(String)for prevalidating inputs.Methods in com.google.common.primitives with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionprivate static PatternDoubles.fpPattern()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.UnsignedInteger.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 DoubleParses the specified string as a double-precision floating point value.static FloatParses the specified string as a single-precision floating point value. -
Uses of GwtIncompatible in com.google.common.testing
Classes in com.google.common.testing with annotations of type GwtIncompatibleModifier and TypeClassDescriptionclassAutomatically runs sanity checks against top level classes in the same package of the test that extendsAbstractPackageSanityTests.final classSupplies an arbitrary "default" instance for a wide range of types, often useful in testing utilities.final classTester that runs automated sanity tests for any given class.(package private) classGenerates a dummy interface proxy that simply returns a dummy value for each method.final classTester to ensure forwarding wrapper works by delegating calls to the corresponding method with the same parameters forwarded and return value forwarded back or exception propagated as is.(package private) classGenerates fresh instances of types that are different from each other (if possible).final classTesting utilities relating to garbage collection finalization.final classA test utility that verifies that your methods and constructors throwNullPointerExceptionorUnsupportedOperationExceptionwhenever null is passed to a parameter whose declaration or type isn't annotated with an annotation with the simple nameNullable,CheckForNull,NullableType, orNullableDecl.Methods in com.google.common.testing with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionAdvances the ticker value byduration.FakeTicker.setAutoIncrementStep(Duration autoIncrementStep) Sets the increment applied to the ticker whenever it is queried. -
Uses of GwtIncompatible in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent with annotations of type GwtIncompatibleModifier and TypeClassDescriptionclassBase class for services that can implementAbstractExecutionThreadService.startUp(),AbstractExecutionThreadService.run()andAbstractExecutionThreadService.shutDown()methods.classBase class for services that do not need a thread while "running" but may need one during startup and shutdown.classAbstractListeningExecutorServiceimplementation that createsListenableFutureinstances for eachRunnableandCallablesubmitted to it.classBase class for services that can implementAbstractScheduledService.startUp()andAbstractScheduledService.shutDown()but while in the "running" state need to perform a periodic task.classBase class for implementing services that can handleAbstractService.doStart()andAbstractService.doStop()requests, responding to them withAbstractService.notifyStarted()andAbstractService.notifyStopped()callbacks.classAdoublevalue that may be updated atomically.classAdoublearray in which elements may be updated atomically.final classStatic utility methods pertaining to classes in thejava.util.concurrent.atomicpackage.classTheCycleDetectingLockFactorycreatesReentrantLockinstances andReentrantReadWriteLockinstances that detect potential deadlock by checking for cycles in lock acquisition order.final classA support class forListenableFutureimplementations to manage their listeners.final classA TimeLimiter implementation which actually does not attempt to limit time at all.classABlockingDequewhich forwards all its method calls to anotherBlockingDeque.classABlockingQueuewhich forwards all its method calls to anotherBlockingQueue.classAn executor service which forwards all its method calls to another executor service.classA listening executor service which forwards all its method calls to another listening executor service.(package private) final classStatic methods used to implementFutures.getChecked(Future, Class).(package private) final classThis class is forcom.google.common.util.concurrentuse only!final classUtilities necessary for working with libraries that supply plainFutureinstances.classAFutureTaskthat also implements theListenableFutureinterface.(package private) final classA list of listeners for implementing a concurrency friendly observable object.interfaceAnExecutorServicethat returnsListenableFutureinstances.interfaceAScheduledExecutorServicethat returnsListenableFutureinstances from itsExecutorServicemethods.final classA synchronization abstraction supporting waiting on arbitrary boolean conditions.(package private) static classRepresents the current application to register shutdown hooks.private static final classprivate static classprivate static final classprivate static final classclassA rate limiter.(package private) final classExecutor ensuring that all Runnables submitted are executed in order, using the provided Executor, and sequentially such that no two will ever be running at the same time.interfaceAn object with an operational state, plus asynchronousService.startAsync()andService.stopAsync()lifecycle methods to transition between states.final classA manager for monitoring and controlling a set of services.(package private) interfaceSuperinterface ofServiceManagerto introduce a bridge method forservicesByState(), to ensure binary compatibility with older Guava versions that specifiedservicesByState()to returnImmutableMultimap.final classA TimeLimiter that runs method calls in the background using anExecutorService.(package private) classclassStriped<L>A stripedLock/Semaphore/ReadWriteLock.final classA 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 factoryinterfaceImposes a time limit on method calls.(package private) final classImplementation ofFutures#withTimeout.final classFactories forThread.UncaughtExceptionHandlerinstances.classUnchecked version ofTimeoutException.(package private) classAn abstractExecutorServicethat allows subclasses to wrap tasks before they are submitted to the underlying executor.(package private) classAn abstractScheduledExecutorServicethat allows subclasses to wrap tasks before they are submitted to the underlying executor.Methods in com.google.common.util.concurrent with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionstatic voidMoreExecutors.addDelayedShutdownHook(ExecutorService service, long terminationTimeout, TimeUnit timeUnit) Add a shutdown hook to wait for thread completion in the givenservice.static voidMoreExecutors.addDelayedShutdownHook(ExecutorService service, Duration terminationTimeout) Add a shutdown hook to wait for thread completion in the givenservice.static <T> AsyncCallable<T>Callables.asAsyncCallable(Callable<T> callable, ListeningExecutorService listeningExecutorService) Creates anAsyncCallablefrom aCallable.static voidUninterruptibles.awaitTerminationUninterruptibly(ExecutorService executor) Invokesexecutor.awaitTermination(long, TimeUnit)uninterruptibly with no timeout.static booleanUninterruptibles.awaitTerminationUninterruptibly(ExecutorService executor, long timeout, TimeUnit unit) Invokesexecutor.awaitTermination(long, TimeUnit)uninterruptibly.static booleanUninterruptibles.awaitTerminationUninterruptibly(ExecutorService executor, Duration timeout) Invokesexecutor.awaitTermination(long, TimeUnit)uninterruptibly.static voidUninterruptibles.awaitUninterruptibly(CountDownLatch latch) Invokeslatch.await()uninterruptibly.static booleanUninterruptibles.awaitUninterruptibly(CountDownLatch latch, long timeout, TimeUnit unit) Invokeslatch.await(timeout, unit)uninterruptibly.static booleanUninterruptibles.awaitUninterruptibly(CountDownLatch latch, Duration timeout) Invokeslatch.await(timeout, unit)uninterruptibly.static booleanUninterruptibles.awaitUninterruptibly(Condition condition, long timeout, TimeUnit unit) Invokescondition.await(timeout, unit)uninterruptibly.static booleanUninterruptibles.awaitUninterruptibly(Condition condition, Duration timeout) Invokescondition.await(timeout, unit)uninterruptibly.static <V,X extends Exception>
VFutures.getChecked(Future<V> future, Class<X> exceptionClass) Returns the result ofFuture.get(), converting most exceptions to a new instance of the given checked exception type.static <V,X extends Exception>
VFutures.getChecked(Future<V> future, Class<X> exceptionClass, long timeout, TimeUnit unit) Returns the result ofFuture.get(long, TimeUnit), converting most exceptions to a new instance of the given checked exception type.static <V,X extends Exception>
VFutures.getChecked(Future<V> future, Class<X> exceptionClass, Duration timeout) Returns the result ofFuture.get(long, TimeUnit), converting most exceptions to a new instance of the given checked exception type.static ExecutorServiceMoreExecutors.getExitingExecutorService(ThreadPoolExecutor executor) Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.static ExecutorServiceMoreExecutors.getExitingExecutorService(ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.static ExecutorServiceMoreExecutors.getExitingExecutorService(ThreadPoolExecutor executor, Duration terminationTimeout) Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.static ScheduledExecutorServiceMoreExecutors.getExitingScheduledExecutorService(ScheduledThreadPoolExecutor executor) Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.static ScheduledExecutorServiceMoreExecutors.getExitingScheduledExecutorService(ScheduledThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.static ScheduledExecutorServiceMoreExecutors.getExitingScheduledExecutorService(ScheduledThreadPoolExecutor executor, Duration terminationTimeout) Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.static <V> VUninterruptibles.getUninterruptibly(Future<V> future, long timeout, TimeUnit unit) Invokesfuture.get(timeout, unit)uninterruptibly.static <V> VUninterruptibles.getUninterruptibly(Future<V> future, Duration timeout) Invokesfuture.get(timeout, unit)uninterruptibly.(package private) static <T> TMoreExecutors.invokeAnyImpl(ListeningExecutorService executorService, Collection<? extends Callable<T>> tasks, boolean timed, long timeout, TimeUnit unit) An implementation ofExecutorService.invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>)forListeningExecutorServiceimplementations.(package private) static <T> TMoreExecutors.invokeAnyImpl(ListeningExecutorService executorService, Collection<? extends Callable<T>> tasks, boolean timed, Duration timeout) An implementation ofExecutorService.invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>)forListeningExecutorServiceimplementations.private static booleanMoreExecutors.isAppEngineWithApiClasses()static voidUninterruptibles.joinUninterruptibly(Thread toJoin) InvokestoJoin.join()uninterruptibly.static voidUninterruptibles.joinUninterruptibly(Thread toJoin, long timeout, TimeUnit unit) Invokesunit.timedJoin(toJoin, timeout)uninterruptibly.static voidUninterruptibles.joinUninterruptibly(Thread toJoin, Duration timeout) Invokesunit.timedJoin(toJoin, timeout)uninterruptibly.static <I,O> Future<O> Futures.lazyTransform(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(ExecutorService delegate) Creates anExecutorServicewhosesubmitandinvokeAllmethods submitListenableFutureTaskinstances to the given delegate executor.MoreExecutors.listeningDecorator(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 ExecutorMoreExecutors.newSequentialExecutor(Executor delegate) Returns anExecutorthat runs each task executed sequentially, such that no two tasks are running concurrently.(package private) static ThreadCreates a thread usingMoreExecutors.platformThreadFactory(), and sets its name tonameunless changing the name is forbidden by the security manager.static ThreadFactoryMoreExecutors.platformThreadFactory()Returns a default thread factory used to create new threads.static <E> voidUninterruptibles.putUninterruptibly(BlockingQueue<E> queue, E element) Invokesqueue.put(element)uninterruptibly.(package private) static ExecutorMoreExecutors.renamingDecorator(Executor executor, Supplier<String> nameSupplier) (package private) static ExecutorServiceMoreExecutors.renamingDecorator(ExecutorService service, Supplier<String> nameSupplier) Creates anExecutorServicethat renames thethreadsthat its tasks run in.(package private) static ScheduledExecutorServiceMoreExecutors.renamingDecorator(ScheduledExecutorService service, Supplier<String> nameSupplier) Creates aScheduledExecutorServicethat renames thethreadsthat its tasks run in.static <O> ListenableFuture<O>Futures.scheduleAsync(AsyncCallable<O> callable, long delay, TimeUnit timeUnit, ScheduledExecutorService executorService) Schedulescallableon the specifiedexecutor, returning aFuture.static <O> ListenableFuture<O>Futures.scheduleAsync(AsyncCallable<O> callable, Duration delay, ScheduledExecutorService executorService) Schedulescallableon the specifiedexecutor, returning aFuture.static booleanMoreExecutors.shutdownAndAwaitTermination(ExecutorService service, long timeout, TimeUnit unit) Shuts down the given executor service gradually, first disabling new submissions and later, if necessary, cancelling remaining tasks.static booleanMoreExecutors.shutdownAndAwaitTermination(ExecutorService service, Duration timeout) Shuts down the given executor service gradually, first disabling new submissions and later, if necessary, cancelling remaining tasks.static voidUninterruptibles.sleepUninterruptibly(long sleepFor, TimeUnit unit) Invokesunit.sleep(sleepFor)uninterruptibly.static voidUninterruptibles.sleepUninterruptibly(Duration sleepFor) Invokesunit.sleep(sleepFor)uninterruptibly.private static <T> ListenableFuture<T>MoreExecutors.submitAndAddQueueListener(ListeningExecutorService executorService, Callable<T> task, BlockingQueue<Future<T>> queue) Submits the task and adds a listener that adds the future toqueuewhen it completes.static <E> EUninterruptibles.takeUninterruptibly(BlockingQueue<E> queue) Invokesqueue.take()uninterruptibly.(package private) static RunnableCallables.threadRenaming(Runnable task, Supplier<String> nameSupplier) Wraps the given runnable such that for the duration ofRunnable.run()the thread that is running with have the given name.(package private) static <T> Callable<T>Callables.threadRenaming(Callable<T> callable, Supplier<String> nameSupplier) Wraps the given callable such that for the duration ofCallable.call()the thread that is running will have the given name.static booleanUninterruptibles.tryAcquireUninterruptibly(Semaphore semaphore, int permits, long timeout, TimeUnit unit) Invokessemaphore.tryAcquire(permits, timeout, unit)uninterruptibly.static booleanUninterruptibles.tryAcquireUninterruptibly(Semaphore semaphore, int permits, Duration timeout) Invokessemaphore.tryAcquire(permits, timeout, unit)uninterruptibly.static booleanUninterruptibles.tryAcquireUninterruptibly(Semaphore semaphore, long timeout, TimeUnit unit) Invokessemaphore.tryAcquire(1, timeout, unit)uninterruptibly.static booleanUninterruptibles.tryAcquireUninterruptibly(Semaphore semaphore, Duration timeout) Invokessemaphore.tryAcquire(1, timeout, unit)uninterruptibly.static booleanUninterruptibles.tryLockUninterruptibly(Lock lock, long timeout, TimeUnit unit) Invokeslock.tryLock(timeout, unit)uninterruptibly.static booleanUninterruptibles.tryLockUninterruptibly(Lock lock, Duration timeout) Invokeslock.tryLock(timeout, unit)uninterruptibly.private static booleanCallables.trySetName(String threadName, Thread currentThread) Tries to set name of the givenThread, returns true if successful.private static voidMoreExecutors.useDaemonThreadFactory(ThreadPoolExecutor executor) final FluentFuture<V>FluentFuture.withTimeout(long timeout, TimeUnit unit, ScheduledExecutorService scheduledExecutor) Returns a future that delegates to this future but will finish early (via aTimeoutExceptionwrapped in anExecutionException) if the specified timeout expires.final FluentFuture<V>FluentFuture.withTimeout(Duration timeout, 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> ListenableFuture<V>Futures.withTimeout(ListenableFuture<V> delegate, long time, TimeUnit unit, ScheduledExecutorService scheduledExecutor) Returns a future that delegates to another but will finish early (via aTimeoutExceptionwrapped in anExecutionException) if the specified duration expires.static <V> ListenableFuture<V>Futures.withTimeout(ListenableFuture<V> delegate, Duration time, ScheduledExecutorService scheduledExecutor) Returns a future that delegates to another but will finish early (via aTimeoutExceptionwrapped in anExecutionException) if the specified duration expires. -
Uses of GwtIncompatible in com.google.common.util.concurrent.testing
Classes in com.google.common.util.concurrent.testing with annotations of type GwtIncompatibleModifier and TypeClassDescriptionclassAbstract test case parent for anything implementingListenableFuture.classA simple mock implementation ofRunnablethat can be used for testing ListenableFutures.(package private) classA ScheduledExecutorService that executes all scheduled actions immediately in the calling thread.final classFactory methods forExecutorServicefor testing.
Throwable.getStackTrace()on JDK versions past JDK 8 and on all Android versions.