-
Methods in org.docx4j.com.google.common.base with annotations of type Beta
| Modifier and Type |
Method |
Description |
static java.util.List<java.lang.Throwable> |
Throwables.getCausalChain(java.lang.Throwable throwable) |
Gets a Throwable cause chain as a list.
|
static <X extends java.lang.Throwable> X |
Throwables.getCauseAs(java.lang.Throwable throwable,
java.lang.Class<X> expectedCauseType) |
Returns throwable's cause, cast to expectedCauseType.
|
static java.util.List<java.lang.StackTraceElement> |
Throwables.lazyStackTrace(java.lang.Throwable throwable) |
Returns the stack trace of throwable, possibly providing slower iteration over the full
trace but faster iteration over parts of the trace.
|
static boolean |
Throwables.lazyStackTraceIsLazy() |
|
-
Methods in org.docx4j.com.google.common.collect with annotations of type Beta
| Modifier and Type |
Method |
Description |
static <E> ImmutableSet.Builder<E> |
ImmutableSet.builderWithExpectedSize(int expectedSize) |
Returns a new builder, expecting the specified number of distinct elements to be added.
|
static <E> int |
Queues.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 as BlockingQueue.drainTo(Collection, int), but if the requested
numElements elements are not available, it will wait for them up to the specified timeout.
|
static <E> int |
Queues.drainUninterruptibly(java.util.concurrent.BlockingQueue<E> q,
java.util.Collection<? super E> buffer,
int numElements,
long timeout,
java.util.concurrent.TimeUnit unit) |
|
default void |
Multiset.forEachEntry(java.util.function.ObjIntConsumer<? super E> action) |
Runs the specified action for each distinct element in this multiset, and the number of
occurrences of that element.
|
-
Methods in org.docx4j.com.google.common.math with annotations of type Beta
| Modifier and Type |
Method |
Description |
static int |
IntMath.ceilingPowerOfTwo(int x) |
Returns the smallest power of two greater than or equal to x.
|
static int |
IntMath.floorPowerOfTwo(int x) |
Returns the largest power of two less than or equal to x.
|
static int |
IntMath.saturatedAdd(int a,
int b) |
Returns the sum of a and b unless it would overflow or underflow in which case
Integer.MAX_VALUE or Integer.MIN_VALUE is returned, respectively.
|
static int |
IntMath.saturatedMultiply(int a,
int b) |
Returns the product of a and b unless it would overflow or underflow in which
case Integer.MAX_VALUE or Integer.MIN_VALUE is returned, respectively.
|
static int |
IntMath.saturatedPow(int b,
int k) |
Returns the b to the kth power, unless it would overflow or underflow in which
case Integer.MAX_VALUE or Integer.MIN_VALUE is returned, respectively.
|
static int |
IntMath.saturatedSubtract(int a,
int b) |
Returns the difference of a and b unless it would overflow or underflow in
which case Integer.MAX_VALUE or Integer.MIN_VALUE is returned, respectively.
|
-
-
Methods in org.docx4j.com.google.common.util.concurrent with annotations of type Beta
| Modifier and Type |
Method |
Description |
protected void |
AbstractFuture.afterDone() |
Callback method that is called exactly once after the future is completed.
|
static java.util.concurrent.ThreadFactory |
MoreExecutors.platformThreadFactory() |
Returns a default thread factory used to create new threads.
|
protected boolean |
AbstractFuture.setFuture(ListenableFuture<? extends V> future) |
Sets the result of this Future to match the supplied input Future once the
supplied Future is done, unless this Future has already been cancelled or set
(including "set asynchronously," defined below).
|
boolean |
SettableFuture.setFuture(ListenableFuture<? extends V> future) |
|
static boolean |
MoreExecutors.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 <I,
O> ListenableFuture<O> |
Futures.transform(ListenableFuture<I> input,
Function<? super I,? extends O> function,
java.util.concurrent.Executor executor) |
Returns a new Future whose result is derived from the result of the given
Future.
|
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 a TimeoutException wrapped in an ExecutionException) if the specified duration expires.
|