Uses of Annotation Interface
com.google.common.annotations.J2ktIncompatible
Packages that use J2ktIncompatible
Package
Description
Basic utility libraries and interfaces.
Collection interfaces and implementations, and other utilities for collections.
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 J2ktIncompatible in com.google.common.base
Classes in com.google.common.base with annotations of type J2ktIncompatibleModifier 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.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 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 J2ktIncompatibleModifier and TypeFieldDescriptionprivate 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.private static final longPredicates.InstanceOfPredicate.serialVersionUID(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 J2ktIncompatibleModifier 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.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).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.(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) voidReturns 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 J2ktIncompatible in com.google.common.collect
Classes in com.google.common.collect with annotations of type J2ktIncompatibleModifier and TypeClassDescriptionprivate static classCollectCollectors.EnumMapAccumulator<K extends Enum<K>,V> (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.final classA multiset that supports concurrent modifications and that provides atomic versions of mostMultisetoperations (exceptions where noted).private static final classEmptyContiguousSet.SerializedForm<C extends Comparable>final classABiMapbacked by twoEnumMapinstances.final classEnumHashBiMap<K extends Enum<K>,V> ABiMapbacked by anEnumMapinstance for keys-to-values, and aHashMapinstance for values-to-keys.final classEnumMultiset<E extends Enum<E>>Multiset implementation specialized for enum elements, supporting all single-element operations in O(1).classDeprecated.This class has moved tocom.google.common.util.concurrent.classA deque which forwards all its method calls to another deque.(package private) static classSerialized form that leads to the same performance as the original list.private static classSerialized type for all ImmutableBiMap instances.private static classImmutableEnumMap.EnumSerializedForm<K extends Enum<K>,V> private static classImmutableEnumSet.EnumSerializedForm<E extends Enum<E>>(package private) static class(package private) static classSerialized type for all ImmutableMap instances.private static classprivate static classprivate static class(package private) static classprivate static final class(package private) static class(package private) static final classprivate static classprivate static final classprivate static classSerialized type for all ImmutableSortedMap instances.private static final classprivate static classinterfaceInterner<E>Provides similar behavior toString.intern()for any immutable type.final classContains static methods pertaining to instances ofInterner.final classA builder ofConcurrentMapinstances that can have keys or values automatically wrapped in weak references.(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.final classA mutable class-to-instance map backed by an arbitrary user-provided map.(package private) static classprivate static classprivate static final classRegularContiguousSet.SerializedForm<C extends Comparable>private static classprivate static classprivate static class(package private) final classProvides static methods for serializing collection classes.Fields in com.google.common.collect with annotations of type J2ktIncompatibleModifier and TypeFieldDescriptionprivate static final longAbstractBiMap.Inverse.serialVersionUIDprivate static final longAbstractBiMap.serialVersionUIDprivate static final longAbstractMapBasedMultiset.serialVersionUIDprivate static final longArrayListMultimap.serialVersionUIDprivate static final longHashBiMap.serialVersionUIDprivate static final longHashMultimap.serialVersionUIDprivate static final longHashMultiset.serialVersionUIDprivate static final longImmutableListMultimap.serialVersionUIDprivate static final longImmutableMultimap.serialVersionUIDprivate static final longImmutableMultimap.Values.serialVersionUIDprivate static final longImmutableMultiset.EntrySet.serialVersionUIDprivate static final longImmutableSetMultimap.serialVersionUIDprivate static final longLinkedHashMultimap.serialVersionUIDprivate static final longLinkedHashMultiset.serialVersionUIDprivate static final longLinkedListMultimap.serialVersionUIDprivate static final longLists.OnePlusArrayList.serialVersionUIDprivate static final longLists.TwoPlusArrayList.serialVersionUIDprivate static final longMultimaps.CustomListMultimap.serialVersionUIDprivate static final longMultimaps.CustomMultimap.serialVersionUIDprivate static final longMultimaps.CustomSetMultimap.serialVersionUIDprivate static final longMultimaps.CustomSortedSetMultimap.serialVersionUIDprivate static final longRegularImmutableMap.KeySet.SerializedForm.serialVersionUIDprivate static final longRegularImmutableMap.serialVersionUIDprivate static final longRegularImmutableMap.Values.SerializedForm.serialVersionUIDprivate static final longSynchronized.SynchronizedObject.serialVersionUIDprivate static final longTreeMultimap.serialVersionUIDprivate static final longTreeMultiset.serialVersionUIDMethods in com.google.common.collect with annotations of type J2ktIncompatibleModifier and TypeMethodDescriptionOrdering.arbitrary()Returns an arbitrary ordering over all objects, for whichcompare(a, b) == 0impliesa == b(identity equality).Sets.complementOf(Collection<E> collection) Creates anEnumSetconsisting of all enum values that are not in the specified collection.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.static ImmutableMap<String,String> Maps.fromProperties(Properties properties) Creates anImmutableMap<String, String>from aPropertiesinstance.static <K extends Enum<K>,V>
ImmutableMap<K,V> Maps.immutableEnumMap(Map<K, ? extends V> map) Returns an immutable map instance containing the given entries.static <E> 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.(package private) voidMapMakerInternalMap.AbstractSerializationProxy.readEntries(ObjectInputStream in) (package private) MapMakerMapMakerInternalMap.AbstractSerializationProxy.readMapMaker(ObjectInputStream in) private voidAbstractBiMap.Inverse.readObject(ObjectInputStream stream) private voidArrayListMultimap.readObject(ObjectInputStream stream) private voidCompactHashMap.readObject(ObjectInputStream stream) private voidCompactHashSet.readObject(ObjectInputStream stream) private voidConcurrentHashMultiset.readObject(ObjectInputStream stream) private voidEmptyContiguousSet.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 voidImmutableBiMap.readObject(ObjectInputStream stream) private voidImmutableCollection.readObject(ObjectInputStream stream) private voidImmutableEnumMap.readObject(ObjectInputStream stream) private voidImmutableEnumSet.readObject(ObjectInputStream stream) private voidImmutableList.readObject(ObjectInputStream stream) private voidImmutableListMultimap.readObject(ObjectInputStream stream) private voidImmutableMap.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 voidImmutableRangeMap.readObject(ObjectInputStream stream) private voidImmutableRangeSet.AsSet.readObject(ObjectInputStream stream) private voidImmutableRangeSet.readObject(ObjectInputStream stream) private voidImmutableSet.readObject(ObjectInputStream stream) private voidImmutableSetMultimap.readObject(ObjectInputStream stream) private voidImmutableSortedMap.readObject(ObjectInputStream stream) private voidImmutableSortedMultiset.readObject(ObjectInputStream stream) private voidImmutableSortedSet.readObject(ObjectInputStream unused) private voidImmutableTable.readObject(ObjectInputStream stream) private voidLinkedHashMultimap.readObject(ObjectInputStream stream) private voidLinkedHashMultiset.readObject(ObjectInputStream stream) private voidLinkedListMultimap.readObject(ObjectInputStream stream) private voidMapMakerInternalMap.readObject(ObjectInputStream in) private voidMapMakerInternalMap.SerializationProxy.readObject(ObjectInputStream in) 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 voidRegularImmutableBiMap.Inverse.readObject(ObjectInputStream stream) private voidTreeMultimap.readObject(ObjectInputStream stream) private voidTreeMultiset.readObject(ObjectInputStream stream) private voidAbstractMapBasedMultiset.readObjectNoData()(package private) ObjectAbstractBiMap.Inverse.readResolve()Object[]EvictingQueue.toArray()final Object[]ImmutableCollection.toArray()Object[]MinMaxPriorityQueue.toArray()(package private) static <T,K extends Enum<K>, V>
Collector<T,?, ImmutableMap<K, V>> CollectCollectors.toImmutableEnumMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction) (package private) static <T,K extends Enum<K>, V>
Collector<T,?, ImmutableMap<K, V>> CollectCollectors.toImmutableEnumMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction) static <T,K extends Enum<K>, V>
Collector<T,?, ImmutableMap<K, V>> Maps.toImmutableEnumMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction) Returns aCollectorthat accumulates elements into anImmutableMapwhose keys and values are the result of applying the provided mapping functions to the input elements.static <T,K extends Enum<K>, V>
Collector<T,?, ImmutableMap<K, V>> Maps.toImmutableEnumMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction) Returns aCollectorthat accumulates elements into anImmutableMapwhose keys and values are the result of applying the provided mapping functions to the input elements.(package private) static MapMakerPlatform.tryWeakKeys(MapMaker mapMaker) Configures the given map maker to use weak keys, if possible; does nothing otherwise (i.e., in GWT).private voidAbstractBiMap.Inverse.writeObject(ObjectOutputStream stream) private voidArrayListMultimap.writeObject(ObjectOutputStream stream) private voidCompactHashMap.writeObject(ObjectOutputStream stream) private voidCompactHashSet.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) ObjectDescendingImmutableSortedMultiset.writeReplace()(package private) ObjectDescendingImmutableSortedSet.writeReplace()(package private) ObjectEmptyContiguousSet.writeReplace()(package private) ObjectImmutableAsList.writeReplace()(package private) ObjectImmutableBiMap.writeReplace()(package private) ObjectImmutableCollection.writeReplace()(package private) ObjectImmutableEnumMap.writeReplace()(package private) ObjectImmutableEnumSet.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) ObjectImmutableMap.writeReplace()Returns a serializable form of this object.(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) ObjectImmutableRangeSet.AsSet.writeReplace()(package private) ObjectImmutableRangeSet.ComplementRanges.writeReplace()(package private) ObjectImmutableRangeSet.writeReplace()(package private) ObjectImmutableSet.CachingAsList.writeReplace()(package private) ObjectImmutableSet.Indexed.writeReplace()(package private) ObjectImmutableSet.writeReplace()(package private) ObjectImmutableSetMultimap.EntrySet.writeReplace()(package private) ObjectImmutableSortedAsList.writeReplace()(package private) ObjectImmutableSortedMap.writeReplace()(package private) ObjectImmutableSortedMultiset.writeReplace()(package private) ObjectImmutableSortedSet.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) ObjectRegularImmutableSortedMultiset.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 J2ktIncompatible in com.google.common.collect.testing
Methods in com.google.common.collect.testing with annotations of type J2ktIncompatibleModifier and TypeMethodDescriptionstatic Methodstatic <K extends Comparable,V>
Iterable<Map.Entry<K,V>> Helpers.orderEntriesByKey(List<Map.Entry<K, V>> insertionOrder) -
Uses of J2ktIncompatible in com.google.common.io
Classes in com.google.common.io with annotations of type J2ktIncompatibleModifier 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 J2ktIncompatibleModifier 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 J2ktIncompatible in com.google.common.math
Classes in com.google.common.math with annotations of type J2ktIncompatibleModifier and TypeClassDescriptionclassA class for arithmetic onBigDecimalthat is not covered by its built-in methods.private static classclassThe 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 J2ktIncompatibleModifier 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 J2ktIncompatibleModifier 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.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 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 J2ktIncompatible in com.google.common.net
Classes in com.google.common.net with annotations of type J2ktIncompatibleModifier and TypeClassDescriptionfinal classA syntactically valid host specifier, suitable for use in a URI.final classStatic utility methods pertaining toInetAddressinstances. -
Uses of J2ktIncompatible in com.google.common.primitives
Classes in com.google.common.primitives with annotations of type J2ktIncompatibleModifier 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 J2ktIncompatibleModifier 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 J2ktIncompatibleModifier and TypeMethodDescriptionUnsignedInteger.times(UnsignedInteger val) Returns the result of multiplying this andval.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 J2ktIncompatible in com.google.common.testing
Classes in com.google.common.testing with annotations of type J2ktIncompatibleModifier 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 J2ktIncompatibleModifier and TypeMethodDescriptionAdvances the ticker value byduration.FakeTicker.setAutoIncrementStep(Duration autoIncrementStep) Sets the increment applied to the ticker whenever it is queried. -
Uses of J2ktIncompatible in com.google.common.util.concurrent
Classes in com.google.common.util.concurrent with annotations of type J2ktIncompatibleModifier 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 classA map containinglongvalues that can be atomically updated.final classA step in a pipeline of an asynchronous computation.classTheCycleDetectingLockFactorycreatesReentrantLockinstances andReentrantReadWriteLockinstances that detect potential deadlock by checking for cycles in lock acquisition order.final classA support class forListenableFutureimplementations to manage their listeners.final classSerializes execution of tasks, somewhat like an "asynchronoussynchronizedblock." Each enqueued callable will not be submitted to its associated executor until the previous callable has returned -- and, if the previous callable was anAsyncCallable, not until theFutureit returned is done (successful, failed, or cancelled).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.(package private) classForwarding wrapper around aCondition.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) classForwarding wrapper around aLock.(package private) final classStatic methods used to implementFutures.getChecked(Future, Class).(package private) classHidden superclass ofFluentFuturethat provides us a place to declare special GWT versions of theFluentFuture.catchingfamily of methods.(package private) classHidden superclass ofFuturesthat provides us a place to declare special GWT versions of theFutures.catchingfamily of methods.(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.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 class(package private) final classWorks around an android bug, where parking for more than INT_MAX seconds can produce an abort signal on 32 bit devices running Android Q.classA 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 J2ktIncompatibleModifier 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.default booleanListeningExecutorService.awaitTermination(Duration timeout) Duration-based overload ofExecutorService.awaitTermination(long, TimeUnit).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.final <X extends Throwable>
FluentFuture<V>FluentFuture.catching(Class<X> exceptionType, Function<? super X, ? extends V> fallback, Executor executor) Returns aFuturewhose result is taken from thisFutureor, if thisFuturefails with the givenexceptionType, from the result provided by thefallback.static <V,X extends Throwable>
ListenableFuture<V>Futures.catching(ListenableFuture<? extends V> input, Class<X> exceptionType, Function<? super X, ? extends V> fallback, Executor executor) Returns aFuturewhose result is taken from the given primaryinputor, if the primary input fails with the givenexceptionType, from the result provided by thefallback.final <X extends Throwable>
FluentFuture<V>FluentFuture.catchingAsync(Class<X> exceptionType, AsyncFunction<? super X, ? extends V> fallback, Executor executor) Returns aFuturewhose result is taken from thisFutureor, if thisFuturefails with the givenexceptionType, from the result provided by thefallback.static <V,X extends Throwable>
ListenableFuture<V>Futures.catchingAsync(ListenableFuture<? extends V> input, Class<X> exceptionType, AsyncFunction<? super X, ? extends V> fallback, Executor executor) Returns aFuturewhose result is taken from the given primaryinputor, if the primary input fails with the givenexceptionType, from the result provided by thefallback.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.ListeningExecutorService.invokeAll(Collection<? extends Callable<T>> tasks, Duration timeout) Duration-based overload ofListeningExecutorService.invokeAll(Collection, long, TimeUnit).default <T> TListeningExecutorService.invokeAny(Collection<? extends Callable<T>> tasks, Duration timeout) Duration-based overload ofExecutorService.invokeAny(Collection, long, TimeUnit).(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.
Throwable.getStackTrace()on JDK versions past JDK 8 and on all Android versions.