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