Uses of Annotation Type
org.docx4j.com.google.common.annotations.GwtIncompatible
Packages that use GwtIncompatible
Package
Description
-
Uses of GwtIncompatible in org.docx4j.com.google.common.base
Methods in org.docx4j.com.google.common.base with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionStopwatch.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.static StringThrowables.getStackTraceAsString(Throwable throwable) Returns a string containing the result oftoString(), followed by the full, recursive stack trace ofthrowable.static List<StackTraceElement>Throwables.lazyStackTrace(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 RuntimeExceptionDeprecated.static <X extends Throwable>
voidThrowables.propagateIfInstanceOf(@Nullable 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(@Nullable Throwable throwable) Deprecated.UseThrowables.throwIfUnchecked(java.lang.Throwable), which has the same behavior but rejectsnull.static <X extends Throwable>
voidThrowables.propagateIfPossible(@Nullable Throwable throwable, Class<X> declaredType) Propagatesthrowableexactly as-is, if and only if it is an instance ofRuntimeException,Error, ordeclaredType.Throwables.propagateIfPossible(@Nullable Throwable throwable, Class<X1> declaredType1, Class<X2> declaredType2) Propagatesthrowableexactly as-is, if and only if it is an instance ofRuntimeException,Error,declaredType1, ordeclaredType2.static <X extends Throwable>
voidThrowables.throwIfInstanceOf(Throwable throwable, Class<X> declaredType) Throwsthrowableif it is an instance ofdeclaredType. -
Uses of GwtIncompatible in org.docx4j.com.google.common.cache
Methods in org.docx4j.com.google.common.cache with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionCacheBuilder.expireAfterAccess(Duration duration) Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, the most recent replacement of its value, or its last access.CacheBuilder.expireAfterWrite(Duration duration) Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.CacheBuilder.maximumWeight(long maximumWeight) Specifies the maximum weight of entries the cache may contain.CacheBuilder.refreshAfterWrite(long duration, TimeUnit unit) Specifies that active entries are eligible for automatic refresh once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.CacheBuilder.refreshAfterWrite(Duration duration) Specifies that active entries are eligible for automatic refresh once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.Computes or retrieves a replacement value corresponding to an already-cachedkey.CacheBuilder.softValues()Specifies that each value (not key) stored in the cache should be wrapped in aSoftReference(by default, strong references are used).CacheBuilder.weakKeys()Specifies that each key (not value) stored in the cache should be wrapped in aWeakReference(by default, strong references are used).CacheBuilder.weakValues()Specifies that each value (not key) stored in the cache should be wrapped in aWeakReference(by default, strong references are used).<K1 extends K,V1 extends V>
CacheBuilder<K1,V1> Specifies the weigher to use in determining the weight of entries. -
Uses of GwtIncompatible in org.docx4j.com.google.common.collect
Methods in org.docx4j.com.google.common.collect with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionstatic <T> T[]Returns a new array that contains the concatenated contents of two arrays.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.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 <T> T[]Returns a new array of the given length with the specified component type.static <E> ArrayBlockingQueue<E>Queues.newArrayBlockingQueue(int capacity) Creates an emptyArrayBlockingQueuewith the given (fixed) capacity and nonfair access policy.static <E> ConcurrentLinkedQueue<E>Queues.newConcurrentLinkedQueue()Creates an emptyConcurrentLinkedQueue.static <E> CopyOnWriteArraySet<E>Sets.newCopyOnWriteArraySet()Creates an emptyCopyOnWriteArraySetinstance.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> 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 extends Comparable>
PriorityBlockingQueue<E>Queues.newPriorityBlockingQueue()Creates an emptyPriorityBlockingQueuewith the ordering given by its elements' natural ordering.static <E> SynchronousQueue<E>Queues.newSynchronousQueue()Creates an emptySynchronousQueuewith nonfair access policy. -
Uses of GwtIncompatible in org.docx4j.com.google.common.math
Methods in org.docx4j.com.google.common.math with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionstatic intIntMath.log10(int x, RoundingMode mode) Returns the base-10 logarithm ofx, rounded according to the specified rounding mode.static intIntMath.pow(int b, int k) Returnsbto thekth power.static intIntMath.sqrt(int x, RoundingMode mode) Returns the square root ofx, rounded with the specified rounding mode. -
Uses of GwtIncompatible in org.docx4j.com.google.common.util.concurrent
Classes in org.docx4j.com.google.common.util.concurrent with annotations of type GwtIncompatibleModifier and TypeClassDescriptionclassAbstractListeningExecutorServiceimplementation that createsListenableFutureinstances for eachRunnableandCallablesubmitted to it.interfaceAnExecutorServicethat returnsListenableFutureinstances.interfaceAScheduledExecutorServicethat returnsListenableFutureinstances from itsExecutorServicemethods.Methods in org.docx4j.com.google.common.util.concurrent with annotations of type GwtIncompatibleModifier and TypeMethodDescriptionstatic voidUninterruptibles.awaitUninterruptibly(CountDownLatch latch) Invokeslatch.await()uninterruptibly.static booleanUninterruptibles.awaitUninterruptibly(CountDownLatch latch, long timeout, TimeUnit unit) Invokeslatch.await(timeout, unit)uninterruptibly.static booleanUninterruptibles.awaitUninterruptibly(Condition condition, long timeout, TimeUnit unit) Invokescondition.await(timeout, unit)uninterruptibly.static <V> VUninterruptibles.getUninterruptibly(Future<V> future, long timeout, TimeUnit unit) Invokesfuture.get(timeout, unit)uninterruptibly.static voidUninterruptibles.joinUninterruptibly(Thread toJoin) InvokestoJoin.join()uninterruptibly.static voidUninterruptibles.joinUninterruptibly(Thread toJoin, long timeout, TimeUnit unit) Invokesunit.timedJoin(toJoin, timeout)uninterruptibly.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 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.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 voidUninterruptibles.sleepUninterruptibly(long sleepFor, TimeUnit unit) Invokesunit.sleep(sleepFor)uninterruptibly.static <E> EUninterruptibles.takeUninterruptibly(BlockingQueue<E> queue) Invokesqueue.take()uninterruptibly.static booleanUninterruptibles.tryAcquireUninterruptibly(Semaphore semaphore, int permits, long timeout, TimeUnit unit) Invokessemaphore.tryAcquire(permits, timeout, unit)uninterruptibly.static booleanUninterruptibles.tryAcquireUninterruptibly(Semaphore semaphore, long timeout, TimeUnit unit) Invokessemaphore.tryAcquire(1, timeout, unit)uninterruptibly.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.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.
throw eorthrow new RuntimeException(e)directly, or use a combination ofThrowables.throwIfUnchecked(java.lang.Throwable)andthrow new RuntimeException(e).