T - public final class Synchronized<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
<E extends Throwable> |
accept(Throwables.Consumer<? super T,E> consumer) |
static <T,E extends Throwable> |
accept(T mutex,
Throwables.Consumer<? super T,E> consumer) |
static <T,U,E extends Throwable> |
accept(T mutex,
U u,
Throwables.BiConsumer<? super T,? super U,E> consumer) |
<R,E extends Throwable> |
apply(Throwables.Function<? super T,R,E> function) |
static <T,R,E extends Throwable> |
apply(T mutex,
Throwables.Function<? super T,R,E> funciton) |
static <T,U,R,E extends Throwable> |
apply(T mutex,
U u,
Throwables.BiFunction<? super T,? super U,R,E> funciton) |
<R,E extends Throwable> |
call(Throwables.Callable<R,E> cmd) |
static <T,R,E extends Throwable> |
call(T mutex,
Throwables.Callable<R,E> cmd) |
static <T> Synchronized<T> |
on(T mutex) |
<E extends Throwable> |
run(Throwables.Runnable<E> cmd) |
static <T,E extends Throwable> |
run(T mutex,
Throwables.Runnable<E> cmd) |
<E extends Throwable> |
test(Throwables.Predicate<? super T,E> predicate) |
static <T,E extends Throwable> |
test(T mutex,
Throwables.Predicate<? super T,E> predicate) |
static <T,U,E extends Throwable> |
test(T mutex,
U u,
Throwables.BiPredicate<? super T,? super U,E> predicate) |
public static <T> Synchronized<T> on(T mutex)
T - mutex - public static <T,E extends Throwable> void run(T mutex, Throwables.Runnable<E> cmd) throws E extends Throwable
T - E - mutex - to locked on.cmd - E - the eE extends Throwablepublic static <T,R,E extends Throwable> R call(T mutex, Throwables.Callable<R,E> cmd) throws E extends Throwable
T - R - E - mutex - to locked on.cmd - E - the eE extends Throwablepublic static <T,E extends Throwable> boolean test(T mutex, Throwables.Predicate<? super T,E> predicate) throws E extends Throwable
T - E - mutex - to locked on.predicate - E - the eE extends Throwablepublic static <T,U,E extends Throwable> boolean test(T mutex, U u, Throwables.BiPredicate<? super T,? super U,E> predicate) throws E extends Throwable
T - U - E - mutex - to locked on.u - predicate - E - the eE extends Throwablepublic static <T,E extends Throwable> void accept(T mutex, Throwables.Consumer<? super T,E> consumer) throws E extends Throwable
T - E - mutex - to locked on.consumer - E - the eE extends Throwablepublic static <T,U,E extends Throwable> void accept(T mutex, U u, Throwables.BiConsumer<? super T,? super U,E> consumer) throws E extends Throwable
T - U - E - mutex - to locked on.u - consumer - E - the eE extends Throwablepublic static <T,R,E extends Throwable> R apply(T mutex, Throwables.Function<? super T,R,E> funciton) throws E extends Throwable
T - R - E - mutex - to locked on.funciton - E - the eE extends Throwablepublic static <T,U,R,E extends Throwable> R apply(T mutex, U u, Throwables.BiFunction<? super T,? super U,R,E> funciton) throws E extends Throwable
T - U - R - E - mutex - to locked on.u - funciton - E - the eE extends Throwablepublic <E extends Throwable> void run(Throwables.Runnable<E> cmd) throws E extends Throwable
E - cmd - E - the eE extends Throwablepublic <R,E extends Throwable> R call(Throwables.Callable<R,E> cmd) throws E extends Throwable
R - E - cmd - E - the eE extends Throwablepublic <E extends Throwable> boolean test(Throwables.Predicate<? super T,E> predicate) throws E extends Throwable
E - predicate - E - the eE extends Throwablepublic <E extends Throwable> void accept(Throwables.Consumer<? super T,E> consumer) throws E extends Throwable
E - consumer - E - the eE extends Throwablepublic <R,E extends Throwable> R apply(Throwables.Function<? super T,R,E> function) throws E extends Throwable
R - E - function - E - the eE extends ThrowableCopyright © 2021. All rights reserved.