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 This package contains caching utilities.com.google.common.collect This package contains generic collection interfaces and implementations, and other utilities for working with collections.com.google.common.collect.testing com.google.common.collect.testing.features com.google.common.collect.testing.google com.google.common.collect.testing.testers com.google.common.hash Hash functions and related structures.com.google.common.io This package contains utility methods and classes for working with Java I/O; for example input streams, output streams, readers, writers, and files.com.google.common.math Arithmetic functions operating on primitive values andBigIntegerinstances.com.google.common.net This package contains utility methods and classes for working with net addresses (numeric IP and domain names).com.google.common.primitives Static utilities for working with the eight primitive types andvoid, and value types for treating them as unsigned.com.google.common.testing This package contains testing utilities.com.google.common.util.concurrent Concurrency utilities.com.google.common.util.concurrent.testing -
-
Uses of GwtIncompatible in com.google.common.base
Classes in com.google.common.base with annotations of type GwtIncompatible Modifier and Type Class Description private static classCharMatcher.BitSetMatcherFast matcher using aBitSettable of matching characters.classDefaultsThis class provides default values for all Java types, as defined by the JLS.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.(package private) classJdkPatternA regex pattern implementation which is backed by thePattern.(package private) interfacePatternCompilerPluggable interface for compiling a regex pattern.private static classPredicates.ContainsPatternFromStringPredicateprivate static classPredicates.ContainsPatternPredicateprivate static classPredicates.InstanceOfPredicateprivate static classPredicates.SubtypeOfPredicate(package private) classSmallCharMatcherAn immutable version of CharMatcher for smallish sets of characters that uses a hash table with linear probing to check for matches.classStandardSystemPropertyRepresents a standard system property.Fields in com.google.common.base with annotations of type GwtIncompatible Modifier and Type Field Description private static java.util.Map<java.lang.Class<? extends java.lang.Enum<?>>,java.util.Map<java.lang.String,java.lang.ref.WeakReference<? extends java.lang.Enum<?>>>>Enums. enumConstantCacheprivate static java.lang.reflect.MethodThrowables. getStackTraceDepthMethodThe "getStackTraceDepth" method, only available on some JDKs so we use reflection to find it when available.private static java.lang.reflect.MethodThrowables. getStackTraceElementMethodThe "getStackTraceElementMethod" method, only available on some JDKs so we use reflection to find it when available.private static java.lang.StringThrowables. JAVA_LANG_ACCESS_CLASSNAMEJavaLangAccess class name to load using reflectionprivate static java.lang.ObjectThrowables. jlaAccess to some fancy internal JVM internals.(package private) static java.lang.StringThrowables. SHARED_SECRETS_CLASSNAMESharedSecrets class name to load using reflectionstatic 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.java.time.DurationStopwatch. elapsed()Returns the current elapsed time shown on this stopwatch as aDuration.static <X extends java.lang.Throwable>
XThrowables. getCauseAs(java.lang.Throwable throwable, java.lang.Class<X> expectedCauseType)Returnsthrowable's cause, cast toexpectedCauseType.(package private) static <T extends java.lang.Enum<T>>
java.util.Map<java.lang.String,java.lang.ref.WeakReference<? extends java.lang.Enum<?>>>Enums. getEnumConstants(java.lang.Class<T> enumClass)static java.lang.reflect.FieldEnums. getField(java.lang.Enum<?> enumValue)Returns theFieldin whichenumValueis defined.private static java.lang.reflect.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 java.lang.ObjectThrowables. getJLA()Returns the JavaLangAccess class that is present in all Sun JDKs.private static java.lang.reflect.MethodThrowables. getJlaMethod(java.lang.String name, java.lang.Class<?>... parameterTypes)private static java.lang.reflect.MethodThrowables. getSizeMethod()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 java.lang.StringThrowables. getStackTraceAsString(java.lang.Throwable throwable)Returns a string containing the result oftoString(), followed by the full, recursive stack trace ofthrowable.static Predicate<java.lang.Object>Predicates. instanceOf(java.lang.Class<?> clazz)Returns a predicate that evaluates totrueif the object being tested is an instance of the given class.private static java.lang.ObjectThrowables. invokeAccessibleNonThrowingMethod(java.lang.reflect.Method method, java.lang.Object receiver, java.lang.Object... params)private static booleanCharMatcher. isSmall(int totalCharacters, int tableLength)private static java.util.List<java.lang.StackTraceElement>Throwables. jlaStackTrace(java.lang.Throwable t)static java.util.List<java.lang.StackTraceElement>Throwables. lazyStackTrace(java.lang.Throwable throwable)Returns the stack trace ofthrowable, possibly providing slower iteration over the full trace but faster iteration over parts of the trace.static booleanThrowables. lazyStackTraceIsLazy()Returns whetherThrowables.lazyStackTrace(java.lang.Throwable)will use the special implementation described in its documentation.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.private static <T extends java.lang.Enum<T>>
java.util.Map<java.lang.String,java.lang.ref.WeakReference<? extends java.lang.Enum<?>>>Enums. populateCache(java.lang.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, java.util.BitSet table, java.lang.String description)Helper method forCharMatcher.precomputedInternal()that doesn't test if the negation is cheaper.static java.lang.RuntimeExceptionThrowables. propagate(java.lang.Throwable throwable)Deprecated.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)Propagatesthrowableexactly as-is, if and only if it is an instance ofRuntimeException,Error, ordeclaredType.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)Propagatesthrowableexactly as-is, if and only if it is an instance ofRuntimeException,Error,declaredType1, ordeclaredType2.(package private) voidCharMatcher.And. setBits(java.util.BitSet table)(package private) voidCharMatcher.AnyOf. setBits(java.util.BitSet table)(package private) voidCharMatcher.InRange. setBits(java.util.BitSet table)(package private) voidCharMatcher.Is. setBits(java.util.BitSet table)(package private) voidCharMatcher.IsEither. setBits(java.util.BitSet table)(package private) voidCharMatcher.IsNot. setBits(java.util.BitSet table)(package private) voidCharMatcher.Negated. setBits(java.util.BitSet table)(package private) voidCharMatcher.Or. setBits(java.util.BitSet table)(package private) voidCharMatcher. setBits(java.util.BitSet table)Sets bits intablematched by this matcher.(package private) voidCharMatcher.Whitespace. setBits(java.util.BitSet table)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.(package private) interfaceReferenceEntry<K,V>An entry in a reference map.classRemovalListenersA collection of common removal listeners.(package private) classStriped64A 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 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.java.util.Set<java.util.Map.Entry<K,V>>LocalCache. entrySet()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.(package private) CacheBuilder<K,V>CacheBuilder. keyEquivalence(Equivalence<java.lang.Object> equivalence)Sets a customEquivalencestrategy for comparing keys.(package private) CacheBuilder<K,V>CacheBuilder. lenientParsing()Enables lenient parsing.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.private static longCacheBuilder. saturatedToNanos(java.time.Duration duration)Returns the number of nanoseconds of the given duration without throwing or overflowing.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).(package private) CacheBuilder<K,V>CacheBuilder. valueEquivalence(Equivalence<java.lang.Object> equivalence)Sets a customEquivalencestrategy for comparing values.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 (package private) classAbstractNavigableMap<K,V>Skeletal implementation ofNavigableMap.(package private) classAbstractRangeSet<C extends java.lang.Comparable>A skeletal implementation ofRangeSet.(package private) classCompactHashMap<K,V>CompactHashMap is an implementation of a Map.(package private) classCompactHashSet<E>CompactHashSet 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<E>CompactLinkedHashSet is an implementation of a Set, which a predictable iteration order that matches the insertion order.classConcurrentHashMultiset<E>A multiset that supports concurrent modifications and that provides atomic versions of mostMultisetoperations (exceptions where noted).(package private) classDescendingImmutableSortedMultiset<E>A descending wrapper around anImmutableSortedMultiset(package private) classDescendingImmutableSortedSet<E>Skeletal implementation ofImmutableSortedSet.descendingSet().private static classEmptyContiguousSet.SerializedForm<C extends java.lang.Comparable>classForwardingBlockingDeque<E>Deprecated.This class has moved tocom.google.common.util.concurrent.classForwardingDeque<E>A deque which forwards all its method calls to another deque.classForwardingNavigableMap<K,V>A navigable map which forwards all its method calls to another navigable map.classForwardingNavigableSet<E>A navigable set which forwards all its method calls to another navigable set.(package private) static classImmutableAsList.SerializedFormSerialized form that leads to the same performance as the original list.(package private) classImmutableBiMapFauxverideShim<K,V>"Overrides" theImmutableMapstatic methods that lackImmutableBiMapequivalents with deprecated, exception-throwing versions.classImmutableClassToInstanceMap<B>AClassToInstanceMapwhose 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 classImmutableMapEntrySet.EntrySetSerializedForm<K,V>private static classImmutableMapKeySet.KeySetSerializedForm<K>private static classImmutableMapValues.SerializedForm<V>(package private) static classImmutableMultimap.FieldSettersHolderprivate static classImmutableMultimap.KeysSerializedForm(package private) static classImmutableMultiset.EntrySetSerializedForm<E>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.private static classImmutableSetMultimap.SetFieldSettersHolder(package private) classImmutableSortedMapFauxverideShim<K,V>"Overrides" theImmutableMapstatic methods that lackImmutableSortedMapequivalents with deprecated, exception-throwing versions.classImmutableSortedMultiset<E>ASortedMultisetwhose contents will never change, with many other important properties detailed atImmutableCollection.(package private) classImmutableSortedMultisetFauxverideShim<E>"Overrides" theImmutableMultisetstatic methods that lackImmutableSortedMultisetequivalents with deprecated, exception-throwing versions.(package private) classImmutableSortedSetFauxverideShim<E>"Overrides" theImmutableSetstatic methods that lackImmutableSortedSetequivalents with deprecated, exception-throwing versions.interfaceInterner<E>Provides equivalent behavior toString.intern()for other immutable types.classInternersContains 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 classMaps.FilteredEntryNavigableMap<K,V>private static classMaps.NavigableAsMapView<K,V>(package private) static classMaps.NavigableKeySet<K,V>private static classMaps.TransformedEntriesNavigableMap<K,V1,V2>(package private) static classMaps.UnmodifiableNavigableMap<K,V>classMutableClassToInstanceMap<B>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>private static classRegularContiguousSet.SerializedForm<C extends java.lang.Comparable>private static classRegularImmutableMap.KeySet.SerializedForm<K>private static classRegularImmutableMap.Values.SerializedForm<V>(package private) classRegularImmutableSortedMultiset<E>An immutable sorted multiset with one or more distinct elements.(package private) classSerializationProvides static methods for serializing collection classes.(package private) static classSets.DescendingSet<E>private static classSets.FilteredNavigableSet<E>(package private) interfaceSortedMultisetBridge<E>Superinterface ofSortedMultisetto introduce a bridge method forelementSet(), to ensure binary compatibility with older Guava versions that specifiedelementSet()to returnSortedSet.(package private) static classSortedMultisets.NavigableElementSet<E>A skeleton navigable implementation forSortedMultiset.elementSet().private static classSynchronized.SynchronizedEntry<K,V>(package private) static classSynchronized.SynchronizedNavigableMap<K,V>(package private) static classSynchronized.SynchronizedNavigableSet<E>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.Fields in com.google.common.collect with annotations of type GwtIncompatible Modifier and Type Field Description (package private) ImmutableSortedSet<E>ImmutableSortedSet. descendingSetprivate static longAbstractBiMap.Inverse. serialVersionUIDprivate static longAbstractBiMap. serialVersionUIDprivate static longAbstractMapBasedMultiset. serialVersionUIDprivate static longArrayListMultimap. serialVersionUIDprivate static longEnumBiMap. serialVersionUIDprivate static longEnumHashBiMap. serialVersionUIDprivate static longEnumMultiset. serialVersionUIDprivate static longHashBiMap. serialVersionUIDprivate static longHashMultimap. serialVersionUIDprivate static longHashMultiset. serialVersionUIDprivate static longImmutableListMultimap. serialVersionUIDprivate static longImmutableSetMultimap. serialVersionUIDprivate static longLinkedHashMultimap. serialVersionUIDprivate static longLinkedHashMultiset. serialVersionUIDprivate static longLinkedListMultimap. serialVersionUIDprivate static longMultimaps.CustomListMultimap. serialVersionUIDprivate static longMultimaps.CustomMultimap. serialVersionUIDprivate static longMultimaps.CustomSetMultimap. serialVersionUIDprivate static longMultimaps.CustomSortedSetMultimap. serialVersionUIDprivate static longSynchronized.SynchronizedObject. serialVersionUIDprivate static longTreeMultimap. serialVersionUIDprivate static longTreeMultiset. serialVersionUIDprivate static java.util.stream.Collector<Range<java.lang.Comparable>,?,ImmutableRangeSet<java.lang.Comparable>>CollectCollectors. TO_IMMUTABLE_RANGE_SETMethods in com.google.common.collect with annotations of type GwtIncompatible Modifier and Type Method Description static <K,V>
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.EImmutableSortedSet. ceiling(E e)static <T> T[]ObjectArrays. concat(T[] first, T[] second, java.lang.Class<T> type)Returns a new array that contains the concatenated contents of two arrays.(package private) intImmutableMapEntrySet.RegularEntrySet. copyIntoArray(java.lang.Object[] dst, int offset)(package private) intImmutableMultimap.Values. copyIntoArray(java.lang.Object[] dst, int offset)(package private) intImmutableMultiset. copyIntoArray(java.lang.Object[] dst, int offset)(package private) intIndexedImmutableSet. copyIntoArray(java.lang.Object[] dst, int offset)(package private) intRegularImmutableAsList. copyIntoArray(java.lang.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()UnmodifiableIterator<E>DescendingImmutableSortedSet. descendingIterator()UnmodifiableIterator<C>EmptyContiguousSet. descendingIterator()UnmodifiableIterator<C>ImmutableRangeSet.AsSet. descendingIterator()abstract UnmodifiableIterator<E>ImmutableSortedSet. descendingIterator()UnmodifiableIterator<C>RegularContiguousSet. descendingIterator()UnmodifiableIterator<E>RegularImmutableSortedSet. descendingIterator()ImmutableSortedSet<E>DescendingImmutableSortedSet. descendingSet()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. drain(java.util.concurrent.BlockingQueue<E> q, java.util.Collection<? super E> buffer, int numElements, java.time.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(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.static <E> intQueues. drainUninterruptibly(java.util.concurrent.BlockingQueue<E> q, java.util.Collection<? super E> buffer, int numElements, java.time.Duration timeout)Drains the queue as Queues.drain(BlockingQueue, Collection, int, Duration), 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> 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,V>
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.private static <K,V>
java.util.NavigableMap<K,V>Maps. filterFiltered(Maps.FilteredEntryNavigableMap<K,V> map, Predicate<? super java.util.Map.Entry<K,V>> entryPredicate)Supportclear(),removeAll(), andretainAll()when filtering a filtered navigable map.static <K,V>
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,V>
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.EImmutableSortedSet. floor(E e)voidImmutableMapValues. forEach(java.util.function.Consumer<? super V> action)voidRegularImmutableAsList. forEach(java.util.function.Consumer<? super E> action)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)ImmutableSortedSet<E>ImmutableSortedSet. headSet(E toElement, boolean inclusive)EImmutableSortedSet. higher(E e)(package private) intEmptyContiguousSet. indexOf(java.lang.Object target)intImmutableSortedAsList. indexOf(java.lang.Object target)(package private) intRegularContiguousSet. indexOf(java.lang.Object target)(package private) booleanEmptyContiguousSet. isHashCodeFast()(package private) booleanImmutableMapEntrySet. isHashCodeFast()(package private) MapMakerMapMaker. keyEquivalence(Equivalence<java.lang.Object> equivalence)Sets a customEquivalencestrategy for comparing keys.intImmutableSortedAsList. lastIndexOf(java.lang.Object target)EImmutableSortedSet. lower(E e)(package private) static <K,V>
java.util.NavigableMap<K,V>Synchronized. navigableMap(java.util.NavigableMap<K,V> navigableMap)(package private) static <K,V>
java.util.NavigableMap<K,V>Synchronized. navigableMap(java.util.NavigableMap<K,V> navigableMap, java.lang.Object mutex)(package private) static <E> java.util.NavigableSet<E>Synchronized. navigableSet(java.util.NavigableSet<E> navigableSet)(package private) static <E> java.util.NavigableSet<E>Synchronized. navigableSet(java.util.NavigableSet<E> navigableSet, java.lang.Object mutex)static <T> T[]ObjectArrays. newArray(java.lang.Class<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> java.util.concurrent.CopyOnWriteArrayList<E>Lists. newCopyOnWriteArrayList()Creates an emptyCopyOnWriteArrayListinstance.static <E> java.util.concurrent.CopyOnWriteArrayList<E>Lists. newCopyOnWriteArrayList(java.lang.Iterable<? extends E> elements)Creates aCopyOnWriteArrayListinstance containing the given elements.static <E> java.util.concurrent.CopyOnWriteArraySet<E>Sets. newCopyOnWriteArraySet()Creates an emptyCopyOnWriteArraySetinstance.static <E> 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.private static <K,V>
java.util.Map.Entry<K,V>Synchronized. nullableSynchronizedEntry(java.util.Map.Entry<K,V> entry, java.lang.Object mutex)EImmutableSortedSet. pollFirst()Deprecated.Unsupported operation.EImmutableSortedSet. pollLast()Deprecated.Unsupported operation.private voidAbstractBiMap.Inverse. readObject(java.io.ObjectInputStream stream)private voidArrayListMultimap. readObject(java.io.ObjectInputStream stream)private voidEnumBiMap. readObject(java.io.ObjectInputStream stream)private voidEnumHashBiMap. readObject(java.io.ObjectInputStream stream)private voidEnumMultiset. readObject(java.io.ObjectInputStream stream)private voidHashBiMap. readObject(java.io.ObjectInputStream stream)private voidHashMultimap. readObject(java.io.ObjectInputStream stream)private voidHashMultiset. readObject(java.io.ObjectInputStream stream)private voidImmutableAsList. readObject(java.io.ObjectInputStream stream)private voidImmutableListMultimap. readObject(java.io.ObjectInputStream stream)private voidImmutableSetMultimap. readObject(java.io.ObjectInputStream stream)private voidLinkedHashMultimap. readObject(java.io.ObjectInputStream stream)private voidLinkedHashMultiset. readObject(java.io.ObjectInputStream stream)private voidLinkedListMultimap. readObject(java.io.ObjectInputStream stream)private voidMultimaps.CustomListMultimap. readObject(java.io.ObjectInputStream stream)private voidMultimaps.CustomMultimap. readObject(java.io.ObjectInputStream stream)private voidMultimaps.CustomSetMultimap. readObject(java.io.ObjectInputStream stream)private voidMultimaps.CustomSortedSetMultimap. readObject(java.io.ObjectInputStream stream)private voidTreeMultimap. readObject(java.io.ObjectInputStream stream)private voidTreeMultiset. readObject(java.io.ObjectInputStream stream)private voidAbstractMapBasedMultiset. readObjectNoData()(package private) java.lang.ObjectAbstractBiMap.Inverse. readResolve()private static <E> java.util.NavigableSet<E>Maps. removeOnlyNavigableSet(java.util.NavigableSet<E> set)(package private) ImmutableList<E>ImmutableSortedAsList. subListUnchecked(int fromIndex, int toIndex)static <K extends java.lang.Comparable<? super K>,V>
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,V>
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> 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)ImmutableSortedSet<E>ImmutableSortedSet. tailSet(E fromElement, boolean inclusive)V[][]ArrayTable. toArray(java.lang.Class<V> valueClass)Returns a two-dimensional array with the table contents.E[]FluentIterable. toArray(java.lang.Class<E> type)Returns an array containing all of the elements from this fluent iterable in iteration order.static <T> T[]Iterables. toArray(java.lang.Iterable<? extends T> iterable, java.lang.Class<T> type)Copies an iterable's elements into an array.static <T> T[]Iterators. toArray(java.util.Iterator<? extends T> iterator, java.lang.Class<T> type)Copies an iterator's elements into an array.(package private) static <T,K extends java.lang.Comparable<? super K>,V>
java.util.stream.Collector<T,?,ImmutableRangeMap<K,V>>CollectCollectors. toImmutableRangeMap(java.util.function.Function<? super T,Range<K>> keyFunction, java.util.function.Function<? super T,? extends V> valueFunction)(package private) static <E extends java.lang.Comparable<? super E>>
java.util.stream.Collector<Range<E>,?,ImmutableRangeSet<E>>CollectCollectors. toImmutableRangeSet()static <K,V1,V2>
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,V1,V2>
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,V>
java.util.NavigableMap<K,V>Maps. unmodifiableNavigableMap(java.util.NavigableMap<K,? extends V> map)Returns an unmodifiable view of the specified navigable map.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).private voidAbstractBiMap.Inverse. writeObject(java.io.ObjectOutputStream stream)private voidArrayListMultimap. writeObject(java.io.ObjectOutputStream stream)private voidEnumBiMap. writeObject(java.io.ObjectOutputStream stream)private voidEnumHashBiMap. writeObject(java.io.ObjectOutputStream stream)private voidEnumMultiset. writeObject(java.io.ObjectOutputStream stream)private voidHashBiMap. writeObject(java.io.ObjectOutputStream stream)private voidHashMultimap. writeObject(java.io.ObjectOutputStream stream)private voidHashMultiset. writeObject(java.io.ObjectOutputStream stream)private voidImmutableListMultimap. writeObject(java.io.ObjectOutputStream stream)private voidImmutableSetMultimap. writeObject(java.io.ObjectOutputStream stream)private voidLinkedHashMultimap. writeObject(java.io.ObjectOutputStream stream)private voidLinkedHashMultiset. writeObject(java.io.ObjectOutputStream stream)private voidLinkedListMultimap. writeObject(java.io.ObjectOutputStream stream)private voidMultimaps.CustomListMultimap. writeObject(java.io.ObjectOutputStream stream)private voidMultimaps.CustomMultimap. writeObject(java.io.ObjectOutputStream stream)private voidMultimaps.CustomSetMultimap. writeObject(java.io.ObjectOutputStream stream)private voidMultimaps.CustomSortedSetMultimap. writeObject(java.io.ObjectOutputStream stream)private voidSynchronized.SynchronizedObject. writeObject(java.io.ObjectOutputStream stream)private voidTreeMultimap. writeObject(java.io.ObjectOutputStream stream)private voidTreeMultiset. writeObject(java.io.ObjectOutputStream stream)(package private) java.lang.ObjectEmptyContiguousSet. writeReplace()(package private) java.lang.ObjectImmutableAsList. writeReplace()(package private) java.lang.ObjectImmutableMapEntrySet. writeReplace()(package private) java.lang.ObjectImmutableMapKeySet. writeReplace()(package private) java.lang.ObjectImmutableMapValues. writeReplace()(package private) java.lang.ObjectImmutableMultimap.Keys. writeReplace()(package private) java.lang.ObjectImmutableMultiset.EntrySet. writeReplace()(package private) java.lang.ObjectImmutableMultiset. writeReplace()(package private) java.lang.ObjectRegularContiguousSet. writeReplace()(package private) java.lang.ObjectRegularImmutableMap.KeySet. writeReplace()(package private) java.lang.ObjectRegularImmutableMap.Values. writeReplace() -
Uses of GwtIncompatible in com.google.common.collect.testing
Classes in com.google.common.collect.testing with annotations of type GwtIncompatible Modifier and Type Class Description classAbstractCollectionTestSuiteBuilder<B extends AbstractCollectionTestSuiteBuilder<B,E>,E>Abstract superclass of all test-suite builders for collection interfaces.classCollectionTestSuiteBuilder<E>Concrete instantiation ofAbstractCollectionTestSuiteBuilderfor testing collections that do not have a more specific tester likeListTestSuiteBuilderorSetTestSuiteBuilder.classConcurrentMapTestSuiteBuilder<K,V>Creates, based on your criteria, a JUnit test suite that exhaustively tests a ConcurrentMap implementation.classConcurrentNavigableMapTestSuiteBuilder<K,V>Creates, 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.classListTestSuiteBuilder<E>Creates, 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.classNavigableMapTestSuiteBuilder<K,V>Creates, based on your criteria, a JUnit test suite that exhaustively tests a NavigableMap implementation.classNavigableSetTestSuiteBuilder<E>Creates, 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...).classQueueTestSuiteBuilder<E>Creates, based on your criteria, a JUnit test suite that exhaustively tests a queue implementation.classReserializingTestCollectionGenerator<E>Reserializes the sets created by another test set generator.classReserializingTestSetGenerator<E>Reserializes the sets created by another test set generator.classSafeTreeMap<K,V>A wrapper aroundTreeMapthat aggressively checks to see if keys are mutually comparable.classSafeTreeSet<E>A wrapper aroundTreeSetthat aggressively checks to see if elements are mutually comparable.classSetTestSuiteBuilder<E>Creates, based on your criteria, a JUnit test suite that exhaustively tests a Set implementation.classSortedMapTestSuiteBuilder<K,V>Creates, based on your criteria, a JUnit test suite that exhaustively tests a SortedMap implementation.classSortedSetTestSuiteBuilder<E>Creates, based on your criteria, a JUnit test suite that exhaustively tests a SortedSet implementation.classTestsForListsInJavaUtilGenerates a test suite covering theListimplementations in thejava.utilpackage.classTestsForMapsInJavaUtilGenerates a test suite covering theMapimplementations in thejava.utilpackage.classTestsForQueuesInJavaUtilGenerates a test suite covering theQueueimplementations in thejava.utilpackage.classTestsForSetsInJavaUtilGenerates a test suite covering theSetimplementations in thejava.utilpackage.Methods in com.google.common.collect.testing with annotations of type GwtIncompatible Modifier and Type Method Description static java.lang.reflect.MethodHelpers. getMethod(java.lang.Class<?> clazz, java.lang.String name) -
Uses of GwtIncompatible in com.google.common.collect.testing.features
Classes in com.google.common.collect.testing.features with annotations of type GwtIncompatible Modifier and Type Class Description classFeatureUtilUtilities 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 GwtIncompatible Modifier and Type Class Description classBiMapTestSuiteBuilder<K,V>Creates, based on your criteria, a JUnit test suite that exhaustively tests aBiMapimplementation.classListMultimapTestSuiteBuilder<K,V>Creates, 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.classMultisetTestSuiteBuilder<E>Creates, based on your criteria, a JUnit test suite that exhaustively tests aMultisetimplementation.static classSetGenerators.ContiguousSetDescendingGeneratorstatic classSetGenerators.ImmutableSortedSetDescendingAsListGeneratorstatic classSetGenerators.ImmutableSortedSetDescendingGeneratorclassSetMultimapTestSuiteBuilder<K,V>Creates, based on your criteria, a JUnit test suite that exhaustively tests aSetMultimapimplementation.classSortedMultisetTestSuiteBuilder<E>Creates, based on your criteria, a JUnit test suite that exhaustively tests aSortedMultisetimplementation.classSortedSetMultimapTestSuiteBuilder<K,V>Creates, based on your criteria, a JUnit test suite that exhaustively tests aSortedSetMultimapimplementation.Methods in com.google.common.collect.testing.google with annotations of type GwtIncompatible Modifier and Type Method Description static java.util.List<java.lang.reflect.Method>MultisetCountTester. getCountDuplicateInitializingMethods()ReturnsMethodinstances for the read tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them.static java.util.List<java.lang.reflect.Method>MultisetElementSetTester. getElementSetDuplicateInitializingMethods()ReturnsMethodinstances for the read tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them.static java.util.List<java.lang.reflect.Method>MultisetForEachEntryTester. getForEachEntryDuplicateInitializingMethods()ReturnsMethodinstances for the remove tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them.static java.util.List<java.lang.reflect.Method>BiMapInverseTester. getInverseSameAfterSerializingMethods()ReturnsMethodinstances for the tests that assume that the inverse will be the same after serialization.static java.util.List<java.lang.reflect.Method>MultisetIteratorTester. getIteratorDuplicateInitializingMethods()ReturnsMethodinstances for the tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them.private static java.lang.reflect.MethodAbstractMultisetSetCountTester. getMethod(java.lang.String methodName)private static java.lang.reflect.MethodBiMapInverseTester. getMethod(java.lang.String methodName)static java.util.List<java.lang.reflect.Method>MultisetRemoveTester. getRemoveDuplicateInitializingMethods()ReturnsMethodinstances for the remove tests that assume multisets support duplicates so that the test ofMultisets.forSet()can suppress them.static java.util.List<java.lang.reflect.Method>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 GwtIncompatible Modifier and Type Class Description classNavigableMapNavigationTester<K,V>A generic JUnit test which tests operations on a NavigableMap.classNavigableSetNavigationTester<E>A generic JUnit test which tests operations on a NavigableSet.Methods in com.google.common.collect.testing.testers with annotations of type GwtIncompatible Modifier and Type Method Description static java.lang.reflect.MethodCollectionAddAllTester. getAddAllNullUnsupportedMethod()Returns theMethodinstance forCollectionAddAllTester.testAddAll_nullUnsupported()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static java.lang.reflect.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 java.lang.reflect.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 java.lang.reflect.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 java.lang.reflect.MethodListAddAtIndexTester. getAddNullSupportedMethod()Returns theMethodinstance forListAddAtIndexTester.testAddAtIndex_nullSupported()so that tests can suppress it.static java.lang.reflect.MethodCollectionAddTester. getAddNullUnsupportedMethod()Returns theMethodinstance forCollectionAddTester.testAdd_nullSupported()so that tests ofTreeSetcan suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static java.lang.reflect.MethodListAddTester. getAddSupportedNullPresentMethod()Returns theMethodinstance forListAddTester.testAdd_supportedNullPresent()so that tests can suppress it.static java.lang.reflect.MethodSetAddTester. getAddSupportedNullPresentMethod()Returns theMethodinstance forSetAddTester.testAdd_supportedNullPresent()so that tests can suppress it.static java.lang.reflect.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 java.lang.reflect.MethodMapEntrySetTester. getContainsEntryWithIncomparableKeyMethod()static java.lang.reflect.MethodMapEntrySetTester. getContainsEntryWithIncomparableValueMethod()static java.lang.reflect.MethodMapCreationTester. getCreateWithNullKeyUnsupportedMethod()Returns theMethodinstance forMapCreationTester.testCreateWithNullKeyUnsupported()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static java.lang.reflect.MethodCollectionCreationTester. getCreateWithNullUnsupportedMethod()Returns theMethodinstance forCollectionCreationTester.testCreateWithNull_unsupported()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static java.lang.reflect.MethodListHashCodeTester. getHashCodeMethod()Returns theMethodinstance forListHashCodeTester.testHashCode()so that list tests on unhashable objects can suppress it withFeatureSpecificTestSuiteBuilder.suppressing().static java.lang.reflect.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 java.lang.reflect.MethodListListIteratorTester. getListIteratorFullyModifiableMethod()Returns theMethodinstance forListListIteratorTester.testListIterator_fullyModifiable()so that tests ofCopyOnWriteArraySetcan suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6570575 is fixed.static java.lang.reflect.MethodListListIteratorTester. getListIteratorUnmodifiableMethod()Returns theMethodinstance forListListIteratorTester.testListIterator_unmodifiable()so that it can be suppressed in GWT tests.static java.lang.reflect.MethodMapMergeTester. getMergeNullValueMethod()Returns theMethodinstance forMapMergeTester.testMergeNullValue()so that tests ofHashtablecan suppress it withFeatureSpecificTestSuiteBuilder.suppressing().static java.lang.reflect.MethodMapPutAllTester. getPutAllNullKeyUnsupportedMethod()Returns theMethodinstance forMapPutAllTester.testPutAll_nullKeyUnsupported()so that tests can suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static java.lang.reflect.MethodMapPutTester. getPutNullKeyUnsupportedMethod()Returns theMethodinstance forMapPutTester.testPut_nullKeyUnsupported()so that tests ofTreeMapcan suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 5045147 is fixed.static java.lang.reflect.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 java.lang.reflect.MethodMapEntrySetTester. getSetValueMethod()static java.lang.reflect.MethodMapEntrySetTester. getSetValueWithNullValuesAbsentMethod()static java.lang.reflect.MethodMapEntrySetTester. getSetValueWithNullValuesPresentMethod()static java.lang.reflect.MethodCollectionSpliteratorTester. getSpliteratorNotImmutableCollectionAllowsAddMethod()static java.lang.reflect.MethodCollectionSpliteratorTester. getSpliteratorNotImmutableCollectionAllowsRemoveMethod()static java.lang.reflect.MethodListSubListTester. getSubListOriginalListSetAffectsSubListLargeListMethod()Returns theMethodinstance forListSubListTester.testSubList_originalListSetAffectsSubListLargeList()()} so that tests ofCopyOnWriteArrayListcan suppress them withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6570631 is fixed.static java.lang.reflect.MethodListSubListTester. getSubListOriginalListSetAffectsSubListMethod()Returns theMethodinstance forListSubListTester.testSubList_originalListSetAffectsSubList()so that tests ofCopyOnWriteArrayListcan suppress them withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6570631 is fixed.static java.lang.reflect.MethodListSubListTester. getSubListSubListRemoveAffectsOriginalLargeListMethod()Returns theMethodinstance forListSubListTester.testSubList_subListRemoveAffectsOriginalLargeList()so that tests ofCopyOnWriteArrayListcan suppress it withFeatureSpecificTestSuiteBuilder.suppressing()until Sun bug 6570575 is fixed.static java.lang.reflect.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 GwtIncompatible Modifier and Type Class Description (package private) classStriped64A 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 GwtIncompatible Modifier and Type Class Description (package private) classAppendableWriterWriter that places all output on anAppendabletarget.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>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.(package private) classCharSequenceReaderAReaderthat reads the characters in aCharSequence.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.classInsecureRecursiveDeleteExceptionException 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) classLineBufferPackage-protected abstract class that implements the line reading algorithm used byLineReader.interfaceLineProcessor<T>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.classMoreFilesStatic utilities for use withPathinstances, intended to complementFiles.(package private) classMultiInputStreamAnInputStreamthat concatenates multiple substreams.(package private) classMultiReaderAReaderthat concatenates multiple readers.classPatternFilenameFilterFile name filter that only accepts files matching a regular expression.(package private) classReaderInputStreamAnInputStreamthat converts characters from aReaderinto bytes using an arbitrary Charset.classRecursiveDeleteOptionOptions 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...)).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.java.io.InputStreamBaseEncoding.SeparatedBaseEncoding. decodingStream(java.io.Reader reader)java.io.InputStreamBaseEncoding.StandardBaseEncoding. decodingStream(java.io.Reader reader)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.java.io.OutputStreamBaseEncoding.SeparatedBaseEncoding. encodingStream(java.io.Writer output)java.io.OutputStreamBaseEncoding.StandardBaseEncoding. encodingStream(java.io.Writer out)(package private) static java.io.ReaderBaseEncoding. ignoringReader(java.io.Reader delegate, java.lang.String toIgnore)(package private) static java.io.WriterBaseEncoding. separatingWriter(java.io.Writer delegate, java.lang.String separator, int afterEveryChars) -
Uses of GwtIncompatible in com.google.common.math
Classes in com.google.common.math with annotations of type GwtIncompatible Modifier and Type Class Description (package private) classDoubleUtilsUtilities fordoubleprimitives.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.classPairedStatsAccumulatorA mutable object which accumulates paired double values (e.g.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.Fields in com.google.common.math with annotations of type GwtIncompatible Modifier and Type Field Description (package private) static long[]LongMath. halfPowersOf10(package private) static long[]LongMath. powersOf10Methods in com.google.common.math with annotations of type GwtIncompatible Modifier and Type Method Description static longLongMath. checkedAdd(long a, long b)Returns the sum ofaandb, provided it does not overflow.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.private static doubleDoubleMath. checkFinite(double argument)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.(package private) static booleanBigIntegerMath. fitsInLong(java.math.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(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.(package private) static intLongMath. log10Floor(long x)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.(package private) static doubleDoubleMath. roundIntermediate(double x, java.math.RoundingMode mode)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 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.private static java.math.BigIntegerBigIntegerMath. sqrtApproxWithDoubles(java.math.BigInteger x)private static java.math.BigIntegerBigIntegerMath. sqrtFloor(java.math.BigInteger x) -
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 classPrimitivesContains static utility methods pertaining to primitive types and their corresponding wrapper types.classUnsignedBytesStatic 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 GwtIncompatible Modifier and Type Field Description (package private) static java.util.regex.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 GwtIncompatible Modifier and Type Method Description private static java.util.regex.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}).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.testing
Classes in com.google.common.testing with annotations of type GwtIncompatible Modifier and Type Class Description classAbstractPackageSanityTestsAutomatically runs sanity checks against top level classes in the same package of the test that extendsAbstractPackageSanityTests.classArbitraryInstancesSupplies an arbitrary "default" instance for a wide range of types, often useful in testing utilities.classClassSanityTesterTester that runs automated sanity tests for any given class.(package private) classDummyProxyGenerates a dummy interface proxy that simply returns a dummy value for each method.classForwardingWrapperTesterTester 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) classFreshValueGeneratorGenerates fresh instances of types that are different from each other (if possible).classGcFinalizationTesting utilities relating to garbage collection finalization.classNullPointerTesterA 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, ,NullableType, orNullableDecl.Methods in com.google.common.testing with annotations of type GwtIncompatible Modifier and Type Method Description FakeTickerFakeTicker. advance(java.time.Duration duration)Advances the ticker value byduration.FakeTickerFakeTicker. setAutoIncrementStep(java.time.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 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.classAtomicDoubleAdoublevalue that may be updated atomically.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.(package private) classFuturesGetCheckedStatic methods used to implementFutures.getChecked(Future, Class).(package private) classInternalThis class is forcom.google.common.util.concurrentuse only!classJdkFutureAdaptersUtilities necessary for working with libraries that supply plainFutureinstances.classListenableFutureTask<V>AFutureTaskthat also implements theListenableFutureinterface.(package private) classListenerCallQueue<L>A list of listeners for implementing a concurrency friendly observable object.interfaceListeningExecutorServiceAnExecutorServicethat returnsListenableFutureinstances.interfaceListeningScheduledExecutorServiceAScheduledExecutorServicethat returnsListenableFutureinstances from itsExecutorServicemethods.classMonitorA synchronization abstraction supporting waiting on arbitrary boolean conditions.(package private) static classMoreExecutors.ApplicationRepresents the current application to register shutdown hooks.private static classMoreExecutors.DirectExecutorServiceprivate static classMoreExecutors.ListeningDecoratorprivate static classMoreExecutors.ScheduledListeningDecoratorprivate static classMoreExecutors.ScheduledListeningDecorator.NeverSuccessfulListenableFutureTaskclassRateLimiterA rate limiter.(package private) classSequentialExecutorExecutor 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.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.(package private) classSmoothRateLimiterclassStriped<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.(package private) classTimeoutFuture<V>Implementation ofFutures#withTimeout.classUncaughtExceptionHandlersFactories forThread.UncaughtExceptionHandlerinstances.classUncheckedTimeoutExceptionUnchecked version ofTimeoutException.(package private) classWrappingExecutorServiceAn abstractExecutorServicethat allows subclasses to wrap tasks before they are submitted to the underlying executor.(package private) classWrappingScheduledExecutorServiceAn 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 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 voidMoreExecutors. addDelayedShutdownHook(java.util.concurrent.ExecutorService service, java.time.Duration terminationTimeout)Add a shutdown hook to wait for thread completion in the givenservice.static <T> AsyncCallable<T>Callables. asAsyncCallable(java.util.concurrent.Callable<T> callable, ListeningExecutorService listeningExecutorService)Creates anAsyncCallablefrom aCallable.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.CountDownLatch latch, java.time.Duration timeout)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 booleanUninterruptibles. awaitUninterruptibly(java.util.concurrent.locks.Condition condition, java.time.Duration timeout)Invokescondition.await(timeout, unit)uninterruptibly.static <V,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,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 <V,X extends java.lang.Exception>
VFutures. getChecked(java.util.concurrent.Future<V> future, java.lang.Class<X> exceptionClass, java.time.Duration timeout)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.ExecutorServiceMoreExecutors. getExitingExecutorService(java.util.concurrent.ThreadPoolExecutor executor, java.time.Duration terminationTimeout)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 java.util.concurrent.ScheduledExecutorServiceMoreExecutors. getExitingScheduledExecutorService(java.util.concurrent.ScheduledThreadPoolExecutor executor, java.time.Duration terminationTimeout)Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.static <V> VUninterruptibles. getUninterruptibly(java.util.concurrent.Future<V> future, long timeout, java.util.concurrent.TimeUnit unit)Invokesfuture.get(timeout, unit)uninterruptibly.static <V> VUninterruptibles. getUninterruptibly(java.util.concurrent.Future<V> future, java.time.Duration timeout)Invokesfuture.get(timeout, unit)uninterruptibly.(package private) static <T> TMoreExecutors. invokeAnyImpl(ListeningExecutorService executorService, java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks, boolean timed, long timeout, java.util.concurrent.TimeUnit unit)An implementation ofExecutorService.invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>)forListeningExecutorServiceimplementations.(package private) static <T> TMoreExecutors. invokeAnyImpl(ListeningExecutorService executorService, java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks, boolean timed, java.time.Duration timeout)An implementation ofExecutorService.invokeAny(java.util.Collection<? extends java.util.concurrent.Callable<T>>)forListeningExecutorServiceimplementations.private static booleanMoreExecutors. isAppEngine()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 voidUninterruptibles. joinUninterruptibly(java.lang.Thread toJoin, java.time.Duration timeout)Invokesunit.timedJoin(toJoin, timeout)uninterruptibly.static <I,O>
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.CallerRunsPolicyThis applies both to individually submitted tasks and to collections of tasks submitted viainvokeAllorinvokeAny.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.(package private) static java.lang.ThreadMoreExecutors. newThread(java.lang.String name, java.lang.Runnable runnable)Creates a thread usingMoreExecutors.platformThreadFactory(), and sets its name tonameunless changing the name is forbidden by the security manager.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.(package private) static java.util.concurrent.ExecutorMoreExecutors. renamingDecorator(java.util.concurrent.Executor executor, Supplier<java.lang.String> nameSupplier)Creates anExecutorthat renames thethreadsthat its tasks run in.(package private) static java.util.concurrent.ExecutorServiceMoreExecutors. renamingDecorator(java.util.concurrent.ExecutorService service, Supplier<java.lang.String> nameSupplier)Creates anExecutorServicethat renames thethreadsthat its tasks run in.(package private) static java.util.concurrent.ScheduledExecutorServiceMoreExecutors. renamingDecorator(java.util.concurrent.ScheduledExecutorService service, Supplier<java.lang.String> nameSupplier)Creates aScheduledExecutorServicethat renames thethreadsthat its tasks run in.static <O> 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 <O> ListenableFuture<O>Futures. scheduleAsync(AsyncCallable<O> callable, java.time.Duration delay, 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 booleanMoreExecutors. shutdownAndAwaitTermination(java.util.concurrent.ExecutorService service, java.time.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, java.util.concurrent.TimeUnit unit)Invokesunit.sleep(sleepFor)uninterruptibly.static voidUninterruptibles. sleepUninterruptibly(java.time.Duration sleepFor)Invokesunit.sleep(sleepFor)uninterruptibly.private static <T> ListenableFuture<T>MoreExecutors. submitAndAddQueueListener(ListeningExecutorService executorService, java.util.concurrent.Callable<T> task, java.util.concurrent.BlockingQueue<java.util.concurrent.Future<T>> queue)Submits the task and adds a listener that adds the future toqueuewhen it completes.static <E> EUninterruptibles. takeUninterruptibly(java.util.concurrent.BlockingQueue<E> queue)Invokesqueue.take()uninterruptibly.(package private) static java.lang.RunnableCallables. threadRenaming(java.lang.Runnable task, Supplier<java.lang.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> java.util.concurrent.Callable<T>Callables. threadRenaming(java.util.concurrent.Callable<T> callable, Supplier<java.lang.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(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, int permits, java.time.Duration timeout)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. tryAcquireUninterruptibly(java.util.concurrent.Semaphore semaphore, java.time.Duration timeout)Invokessemaphore.tryAcquire(1, timeout, unit)uninterruptibly.private static booleanCallables. trySetName(java.lang.String threadName, java.lang.Thread currentThread)Tries to set name of the givenThread, returns true if successful.private static voidMoreExecutors. useDaemonThreadFactory(java.util.concurrent.ThreadPoolExecutor executor)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.FluentFuture<V>FluentFuture. withTimeout(java.time.Duration timeout, 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> 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.static <V> ListenableFuture<V>Futures. withTimeout(ListenableFuture<V> delegate, java.time.Duration time, 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. -
Uses of GwtIncompatible in com.google.common.util.concurrent.testing
Classes in com.google.common.util.concurrent.testing with annotations of type GwtIncompatible Modifier and Type Class Description classAbstractListenableFutureTestAbstract test case parent for anything implementingListenableFuture.classMockFutureListenerA simple mock implementation ofRunnablethat can be used for testing ListenableFutures.(package private) classSameThreadScheduledExecutorServiceA ScheduledExecutorService that executes all scheduled actions immediately in the calling thread.classTestingExecutorsFactory methods forExecutorServicefor testing.
-