A B C D E F G H I L M N P R S T W 
All Classes All Packages

A

accept(T) - Method in interface com.github.phantomthief.util.ThrowableConsumer
 
accept(T1, T2, T3) - Method in interface com.github.phantomthief.util.ThrowableTriConsumer
 
accept(T, U) - Method in interface com.github.phantomthief.util.ThrowableBiConsumer
 
accumulator() - Method in class com.github.phantomthief.util.MoreCollectors.CollectorImpl
 
addTimeoutListener(ThrowableConsumer<TimeoutException, Exception>) - Method in class com.github.phantomthief.concurrent.TimeoutListenableFuture
 
addTimeoutListener(ThrowableRunnable<Exception>) - Method in class com.github.phantomthief.concurrent.TimeoutListenableFuture
 
after(Predicate<T>) - Static method in class com.github.phantomthief.util.MorePredicates
 
after(Predicate<T>, boolean) - Static method in class com.github.phantomthief.util.MorePredicates
 
afterElement(T) - Static method in class com.github.phantomthief.util.MorePredicates
 
afterElement(T, boolean) - Static method in class com.github.phantomthief.util.MorePredicates
 
andThen(ThrowableBiConsumer<? super T, ? super U, X>) - Method in interface com.github.phantomthief.util.ThrowableBiConsumer
 
andThen(ThrowableConsumer<? super T, X>) - Method in interface com.github.phantomthief.util.ThrowableConsumer
 
andThen(ThrowableFunction<? super R, ? extends V, X>) - Method in interface com.github.phantomthief.util.ThrowableFunction
 
apply(T) - Method in interface com.github.phantomthief.util.ThrowableFunction
 
apply(T1, T2, T3) - Method in interface com.github.phantomthief.util.ThrowableTriFunction
 
apply(T1, T2, T3) - Method in interface com.github.phantomthief.util.TriFunction
 
apply(T, U) - Method in interface com.github.phantomthief.util.ThrowableBiFunction
 
applyOtherwise(Predicate<T>, Consumer<T>) - Static method in class com.github.phantomthief.util.MorePredicates
 
asyncLazy(Supplier<T>) - Static method in class com.github.phantomthief.util.MoreSuppliers
 
asyncLazy(Supplier<T>, String) - Static method in class com.github.phantomthief.util.MoreSuppliers
 
asyncLazy(Supplier<T>, Supplier<T>, String) - Static method in class com.github.phantomthief.util.MoreSuppliers
 

B

batchClosedRange(long, long, int) - Static method in class com.github.phantomthief.util.MoreIterables
 
batchClosedRangeStream(long, long, int) - Static method in class com.github.phantomthief.util.MoreIterables
 
batchClosedSimpleRange(long, long, int) - Static method in class com.github.phantomthief.util.MoreIterables
 
batchClosedSimpleRangeStream(long, long, int) - Static method in class com.github.phantomthief.util.MoreIterables
 

C

cancelAllTimeout(boolean) - Method in exception com.github.phantomthief.concurrent.TryWaitFutureUncheckedException
 
cancelAllTimeout(boolean) - Method in exception com.github.phantomthief.concurrent.TryWaitUncheckedException
 
cast(ThrowableSupplier<T, X>) - Static method in interface com.github.phantomthief.util.ThrowableSupplier
 
catching(ThrowableFunction<T, R, Exception>, T) - Static method in class com.github.phantomthief.util.MoreFunctions
 
catching(ThrowableFunction<T, R, Exception>, T, ThrowableConsumer<Throwable, X>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
catching(Callable<R>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
catching(Callable<R>, ThrowableConsumer<Throwable, X>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
catchingOptional(Callable<R>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
CH_ID - Static variable in class com.github.phantomthief.util.MoreCollectors
 
CH_NOID - Static variable in class com.github.phantomthief.util.MoreCollectors
 
changeThrowableMessage(Throwable, String) - Static method in class com.github.phantomthief.util.ThrowableUtils
 
changeThrowableMessage(Throwable, Function<String, String>) - Static method in class com.github.phantomthief.util.ThrowableUtils
 
characteristics() - Method in class com.github.phantomthief.util.MoreCollectors.CollectorImpl
 
close() - Method in class com.github.phantomthief.util.DeadlineChecker
 
CollectorImpl(Supplier<A>, BiConsumer<A, T>, BinaryOperator<A>, Function<A, R>, Set<Collector.Characteristics>) - Constructor for class com.github.phantomthief.util.MoreCollectors.CollectorImpl
 
CollectorImpl(Supplier<A>, BiConsumer<A, T>, BinaryOperator<A>, Set<Collector.Characteristics>) - Constructor for class com.github.phantomthief.util.MoreCollectors.CollectorImpl
 
com.github.phantomthief.concurrent - package com.github.phantomthief.concurrent
 
com.github.phantomthief.tuple - package com.github.phantomthief.tuple
 
com.github.phantomthief.util - package com.github.phantomthief.util
 
combiner() - Method in class com.github.phantomthief.util.MoreCollectors.CollectorImpl
 
compose(ThrowableFunction<? super V, ? extends T, X>) - Method in interface com.github.phantomthief.util.ThrowableFunction
 
concat(Stream<? extends T>) - Static method in class com.github.phantomthief.util.MoreCollectors
 
concat(T) - Static method in class com.github.phantomthief.util.MoreCollectors
 
consume(A, B, C) - Method in interface com.github.phantomthief.util.TriConsumer
 
consumerKv(BiConsumer<K, V>) - Static method in class com.github.phantomthief.util.MoreFunctions
 

D

DeadlineChecker - Class in com.github.phantomthief.util
When a task is running.
deadlineWithMinTicker(Duration) - Static method in class com.github.phantomthief.util.DeadlineChecker
 
delegate() - Method in class com.github.phantomthief.concurrent.TimeoutListenableFuture
 
distinctUsing(Function<T, Object>) - Static method in class com.github.phantomthief.util.MorePredicates
 

E

equals(Object) - Method in class com.github.phantomthief.tuple.FourTuple
 
equals(Object) - Method in class com.github.phantomthief.tuple.ThreeTuple
 
equals(Object) - Method in class com.github.phantomthief.tuple.TwoTuple
 

F

filterKv(BiPredicate<K, V>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
finisher() - Method in class com.github.phantomthief.util.MoreCollectors.CollectorImpl
 
first - Variable in class com.github.phantomthief.tuple.TwoTuple
 
fourth - Variable in class com.github.phantomthief.tuple.FourTuple
 
FourTuple<A,​B,​C,​D> - Class in com.github.phantomthief.tuple
大家尽量不要用到这个类哦,很蛋疼了。
FourTuple(A, B, C, D) - Constructor for class com.github.phantomthief.tuple.FourTuple

G

get() - Method in class com.github.phantomthief.util.MoreSuppliers.AsyncSupplier
 
get() - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableSupplier
 
get() - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableThrowableSupplier
 
get() - Method in interface com.github.phantomthief.util.ThrowableSupplier
 
get(long, TimeUnit) - Method in class com.github.phantomthief.concurrent.TimeoutListenableFuture
 
getCallerPlace() - Static method in class com.github.phantomthief.util.MoreReflection
 
getCallerPlace(Class<?>) - Static method in class com.github.phantomthief.util.MoreReflection
 
getCancel() - Method in exception com.github.phantomthief.concurrent.TryWaitFutureUncheckedException
 
getCancel() - Method in exception com.github.phantomthief.concurrent.TryWaitUncheckedException
 
getFailed() - Method in exception com.github.phantomthief.concurrent.TryWaitFutureUncheckedException
 
getFailed() - Method in exception com.github.phantomthief.concurrent.TryWaitUncheckedException
 
getFirst() - Method in class com.github.phantomthief.tuple.TwoTuple
 
getFourth() - Method in class com.github.phantomthief.tuple.FourTuple
 
getMessage() - Method in exception com.github.phantomthief.concurrent.TryWaitFutureUncheckedException
 
getMessage() - Method in exception com.github.phantomthief.concurrent.TryWaitUncheckedException
 
getSecond() - Method in class com.github.phantomthief.tuple.TwoTuple
 
getSuccess() - Method in exception com.github.phantomthief.concurrent.TryWaitFutureUncheckedException
 
getSuccess() - Method in exception com.github.phantomthief.concurrent.TryWaitUncheckedException
 
getThird() - Method in class com.github.phantomthief.tuple.ThreeTuple
 
getTimeout() - Method in exception com.github.phantomthief.concurrent.TryWaitFutureUncheckedException
 
getTimeout() - Method in exception com.github.phantomthief.concurrent.TryWaitUncheckedException
 
getTimeoutListeners() - Method in class com.github.phantomthief.concurrent.TimeoutListenableFuture
 
getUnchecked(Future<? extends T>, long, TimeUnit) - Static method in class com.github.phantomthief.concurrent.MoreFutures
 
getUnchecked(Future<? extends T>, long, TimeUnit, boolean) - Static method in class com.github.phantomthief.concurrent.MoreFutures
 
getUnchecked(Future<? extends T>, Duration) - Static method in class com.github.phantomthief.concurrent.MoreFutures
 
groupingByAllowNullKey(Function<? super T, ? extends K>) - Static method in class com.github.phantomthief.util.MoreCollectors
 
groupingByAllowNullKey(Function<? super T, ? extends K>, Supplier<M>, Collector<? super T, A, D>) - Static method in class com.github.phantomthief.util.MoreCollectors
allow null key for mapFactory, nothing else changes
groupingByAllowNullKey(Function<? super T, ? extends K>, Collector<? super T, A, D>) - Static method in class com.github.phantomthief.util.MoreCollectors
 

H

hashCode() - Method in class com.github.phantomthief.tuple.FourTuple
 
hashCode() - Method in class com.github.phantomthief.tuple.ThreeTuple
 
hashCode() - Method in class com.github.phantomthief.tuple.TwoTuple
 

I

identity() - Static method in interface com.github.phantomthief.util.ThrowableFunction
 
ifPresent(ThrowableConsumer<T, X>) - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableSupplier
 
ifPresent(ThrowableConsumer<T, X2>) - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableThrowableSupplier
 
intRangeClosed(int, int) - Static method in class com.github.phantomthief.util.MoreStreams
 
isInitialized() - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableSupplier
 
isInitialized() - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableThrowableSupplier
 

L

lazy(Supplier<T>) - Static method in class com.github.phantomthief.util.MoreSuppliers
 
lazy(Supplier<T>, boolean) - Static method in class com.github.phantomthief.util.MoreSuppliers
 
lazyEx(ThrowableSupplier<T, X>) - Static method in class com.github.phantomthief.util.MoreSuppliers
 
lazyEx(ThrowableSupplier<T, X>, boolean) - Static method in class com.github.phantomthief.util.MoreSuppliers
 
logDeprecated(String) - Static method in class com.github.phantomthief.util.MoreReflection
 
longRangeClosed(long, long) - Static method in class com.github.phantomthief.util.MoreStreams
 

M

map(Function<? super T, ? extends U>) - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableSupplier
 
map(Function<? super T, ? extends U>) - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableThrowableSupplier
 
mapKv(BiFunction<K, V, T>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
MoreCollectors - Class in com.github.phantomthief.util
 
MoreCollectors.CollectorImpl<T,​A,​R> - Class in com.github.phantomthief.util
Simple implementation class for Collector.
MoreFunctions - Class in com.github.phantomthief.util
 
MoreFunctions() - Constructor for class com.github.phantomthief.util.MoreFunctions
 
MoreFutures - Class in com.github.phantomthief.concurrent
 
MoreFutures() - Constructor for class com.github.phantomthief.concurrent.MoreFutures
 
MoreFutures.Scheduled - Interface in com.github.phantomthief.concurrent
 
MoreIterables - Class in com.github.phantomthief.util
 
MoreLocks - Class in com.github.phantomthief.util
 
MorePredicates - Class in com.github.phantomthief.util
 
MoreReflection - Class in com.github.phantomthief.util
 
MoreReflection() - Constructor for class com.github.phantomthief.util.MoreReflection
 
MoreRunnables - Class in com.github.phantomthief.util
 
MoreRunnables() - Constructor for class com.github.phantomthief.util.MoreRunnables
 
MoreStreams - Class in com.github.phantomthief.util
 
MoreSuppliers - Class in com.github.phantomthief.util
 
MoreSuppliers() - Constructor for class com.github.phantomthief.util.MoreSuppliers
 
MoreSuppliers.AsyncSupplier<T> - Class in com.github.phantomthief.util
 
MoreSuppliers.CloseableSupplier<T> - Class in com.github.phantomthief.util
 
MoreSuppliers.CloseableThrowableSupplier<T,​X extends Throwable> - Class in com.github.phantomthief.util
 

N

not(Predicate<T>) - Static method in class com.github.phantomthief.util.MorePredicates
 

P

partition(Stream<T>, int) - Static method in class com.github.phantomthief.util.MoreStreams
 
probability(double) - Static method in class com.github.phantomthief.util.MorePredicates
 

R

run() - Method in interface com.github.phantomthief.concurrent.MoreFutures.Scheduled
 
run() - Method in interface com.github.phantomthief.util.ThrowableRunnable
 
runCatching(ThrowableRunnable<X>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
runOnce(Runnable) - Static method in class com.github.phantomthief.util.MoreRunnables
 
runParallel(ForkJoinPool, ThrowableRunnable<X>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
runThrowing(ThrowableRunnable<X>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
runWithDeadline(ThrowableRunnable<X>, Duration, Consumer<Thread>) - Method in class com.github.phantomthief.util.DeadlineChecker
 
runWithLock(Lock, ThrowableRunnable<X>) - Static method in class com.github.phantomthief.util.MoreLocks
 
runWithThreadName(Function<String, String>, ThrowableRunnable<X>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
runWithTryLock(Lock, long, TimeUnit, ThrowableRunnable<X>) - Static method in class com.github.phantomthief.util.MoreLocks
 
runWithTryLock(Lock, long, TimeUnit, ThrowableRunnable<X>, Runnable) - Static method in class com.github.phantomthief.util.MoreLocks
 
runWithTryLock(Lock, ThrowableRunnable<X>) - Static method in class com.github.phantomthief.util.MoreLocks
 
runWithTryLock(Lock, ThrowableRunnable<X>, Runnable) - Static method in class com.github.phantomthief.util.MoreLocks
 

S

scheduleWithDynamicDelay(ScheduledExecutorService, Duration, MoreFutures.Scheduled) - Static method in class com.github.phantomthief.concurrent.MoreFutures
 
scheduleWithDynamicDelay(ScheduledExecutorService, Supplier<Duration>, ThrowableRunnable<Throwable>) - Static method in class com.github.phantomthief.concurrent.MoreFutures
 
second - Variable in class com.github.phantomthief.tuple.TwoTuple
 
supplier() - Method in class com.github.phantomthief.util.MoreCollectors.CollectorImpl
 
supplyParallel(ForkJoinPool, ThrowableSupplier<R, X>) - Static method in class com.github.phantomthief.util.MoreFunctions
mainly use for BaseStream.parallel() with specific thread pool see https://stackoverflow.com/questions/21163108/custom-thread-pool-in-java-8-parallel-stream
supplyWithDeadline(ThrowableSupplier<T, X>, Duration, Consumer<Thread>) - Method in class com.github.phantomthief.util.DeadlineChecker
 
supplyWithLock(Lock, ThrowableSupplier<T, X>) - Static method in class com.github.phantomthief.util.MoreLocks
 
supplyWithThreadName(Function<String, String>, ThrowableSupplier<T, X>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
supplyWithTryLock(Lock, long, TimeUnit, ThrowableSupplier<T, X>) - Static method in class com.github.phantomthief.util.MoreLocks
 
supplyWithTryLock(Lock, long, TimeUnit, ThrowableSupplier<T, X>, Supplier<T>) - Static method in class com.github.phantomthief.util.MoreLocks
 
supplyWithTryLock(Lock, ThrowableSupplier<T, X>) - Static method in class com.github.phantomthief.util.MoreLocks
 
supplyWithTryLock(Lock, ThrowableSupplier<T, X>, Supplier<T>) - Static method in class com.github.phantomthief.util.MoreLocks
 

T

test(T) - Method in interface com.github.phantomthief.util.ThrowablePredicate
 
test(T, U) - Method in interface com.github.phantomthief.util.ThrowableBiPredicate
 
third - Variable in class com.github.phantomthief.tuple.ThreeTuple
 
ThreeTuple<A,​B,​C> - Class in com.github.phantomthief.tuple
 
ThreeTuple(A, B, C) - Constructor for class com.github.phantomthief.tuple.ThreeTuple
Deprecated.
ThrowableBiConsumer<T,​U,​X extends Throwable> - Interface in com.github.phantomthief.util
 
ThrowableBiFunction<T,​U,​R,​X extends Throwable> - Interface in com.github.phantomthief.util
 
ThrowableBiPredicate<T,​U,​X extends Throwable> - Interface in com.github.phantomthief.util
 
ThrowableConsumer<T,​X extends Throwable> - Interface in com.github.phantomthief.util
 
ThrowableFunction<T,​R,​X extends Throwable> - Interface in com.github.phantomthief.util
 
ThrowablePredicate<T,​X extends Throwable> - Interface in com.github.phantomthief.util
 
ThrowableRunnable<X extends Throwable> - Interface in com.github.phantomthief.util
 
ThrowableSupplier<T,​X extends Throwable> - Interface in com.github.phantomthief.util
 
ThrowableTriConsumer<T1,​T2,​T3,​X extends Throwable> - Interface in com.github.phantomthief.util
 
ThrowableTriFunction<T1,​T2,​T3,​R,​X extends Throwable> - Interface in com.github.phantomthief.util
 
ThrowableUtils - Class in com.github.phantomthief.util
 
ThrowableUtils() - Constructor for class com.github.phantomthief.util.ThrowableUtils
 
throwing(ThrowableFunction<T, R, Exception>, T) - Static method in class com.github.phantomthief.util.MoreFunctions
 
throwing(Callable<R>) - Static method in class com.github.phantomthief.util.MoreFunctions
 
throwingMerger() - Static method in class com.github.phantomthief.util.MoreCollectors
 
timeoutListenableFuture(ListenableFuture<V>) - Static method in class com.github.phantomthief.concurrent.TimeoutListenableFuture
 
TimeoutListenableFuture<V> - Class in com.github.phantomthief.concurrent
 
TimeoutListenableFuture(ListenableFuture<V>) - Constructor for class com.github.phantomthief.concurrent.TimeoutListenableFuture
toIntList() - Static method in class com.github.phantomthief.util.MoreCollectors
 
toIntMap(ToIntFunction<? super T>, Function<? super T, ? extends U>) - Static method in class com.github.phantomthief.util.MoreCollectors
 
toIntSet() - Static method in class com.github.phantomthief.util.MoreCollectors
 
toLongList() - Static method in class com.github.phantomthief.util.MoreCollectors
 
toLongSet() - Static method in class com.github.phantomthief.util.MoreCollectors
 
toMap() - Static method in class com.github.phantomthief.util.MoreCollectors
 
toMap(Function<? super T, ? extends K>, Function<? super T, ? extends U>, Supplier<R>) - Static method in class com.github.phantomthief.util.MoreCollectors
 
toMultimap(Function<? super T, ? extends K>, Function<? super T, ? extends U>, Supplier<M>) - Static method in class com.github.phantomthief.util.MoreCollectors
Deprecated.
toMultiset(Function<? super T, ? extends K>, ToIntFunction<? super T>) - Static method in class com.github.phantomthief.util.MoreCollectors
Deprecated.
toStream(Iterable<T>) - Static method in class com.github.phantomthief.util.MoreStreams
 
toStream(Iterator<T>) - Static method in class com.github.phantomthief.util.MoreStreams
 
toString() - Method in class com.github.phantomthief.tuple.FourTuple
 
toString() - Method in class com.github.phantomthief.tuple.ThreeTuple
 
toString() - Method in class com.github.phantomthief.tuple.TwoTuple
 
toString() - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableSupplier
 
toString() - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableThrowableSupplier
 
ToStringHelper - Class in com.github.phantomthief.util
 
ToStringHelper() - Constructor for class com.github.phantomthief.util.ToStringHelper
 
transform(ListenableFuture<I>, Function<? super I, ? extends O>, Executor) - Static method in class com.github.phantomthief.concurrent.MoreFutures
用于替换 Futures.transform(ListenableFuture, com.google.common.base.Function, Executor)
TriConsumer<A,​B,​C> - Interface in com.github.phantomthief.util
 
TriFunction<T1,​T2,​T3,​R> - Interface in com.github.phantomthief.util
 
tryClose() - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableSupplier
 
tryClose() - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableThrowableSupplier
 
tryClose(ThrowableConsumer<T, X>) - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableSupplier
 
tryClose(ThrowableConsumer<T, X2>) - Method in class com.github.phantomthief.util.MoreSuppliers.CloseableThrowableSupplier
 
tryWait(Iterable<F>, long, TimeUnit) - Static method in class com.github.phantomthief.concurrent.MoreFutures
A typical usage: <pre> // a fail-safe example List<Future<User>> list = doSomeAsyncTasks(); Map<Future<User>, User> success; try { success = tryWait(list, 1, SECONDS); } catch (TryWaitUncheckedException e) { success = e.getSuccess(); // there are still some success } // a fail-fast example List<Future<User>> list = doSomeAsyncTasks(); // don't try/catch the exception it throws. Map<Future<User>, User> success = tryWait(list, 1, SECONDS); </pre>
tryWait(Iterable<F>, Duration) - Static method in class com.github.phantomthief.concurrent.MoreFutures
 
tryWait(Iterable<K>, long, TimeUnit, ThrowableFunction<K, Future<V>, X>) - Static method in class com.github.phantomthief.concurrent.MoreFutures
A typical usage: <pre> // a fail-safe example List<Integer> list = getSomeIds(); Map<Integer, User> success; try { success = tryWait(list, 1, SECONDS, id -> executor.submit(() -> retrieve(id))); } catch (TryWaitUncheckedException e) { success = e.getSuccess(); // there are still some success } // a fail-fast example List<Integer> list = getSomeIds(); // don't try/catch the exception it throws. Map<Integer, User> success = tryWait(list, 1, SECONDS, id -> executor.submit(() -> retrieve(id))); </pre>
tryWait(Iterable<K>, Duration, ThrowableFunction<K, Future<V>, X>) - Static method in class com.github.phantomthief.concurrent.MoreFutures
 
TryWaitFutureUncheckedException - Exception in com.github.phantomthief.concurrent
 
TryWaitUncheckedException - Exception in com.github.phantomthief.concurrent
 
tuple(A, B) - Static method in class com.github.phantomthief.tuple.Tuple
 
tuple(A, B, C) - Static method in class com.github.phantomthief.tuple.Tuple
 
tuple(A, B, C, D) - Static method in class com.github.phantomthief.tuple.Tuple
 
Tuple - Class in com.github.phantomthief.tuple
 
TwoTuple<A,​B> - Class in com.github.phantomthief.tuple
 
TwoTuple(A, B) - Constructor for class com.github.phantomthief.tuple.TwoTuple
Deprecated.

W

wrapToString(Class<T>, T, Function<T, String>) - Static method in class com.github.phantomthief.util.ToStringHelper
 
A B C D E F G H I L M N P R S T W 
All Classes All Packages