public class Remote extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Remote.BiConsumer<T,U>
Represents an operation that accepts two input arguments and returns no result.
|
static interface |
Remote.BiFunction<T,U,R>
Represents a function that accepts two arguments and produces a result.
|
static interface |
Remote.BinaryOperator<T>
Represents an operation upon two operands of the same type, producing a result of the same type as the operands.
|
static interface |
Remote.BiPredicate<T,U>
Represents a predicate (boolean-valued function) of two arguments.
|
static interface |
Remote.BooleanSupplier
Represents a supplier of
boolean -valued results. |
static interface |
Remote.Callable<V>
A task that returns a result and may throw an exception.
|
static interface |
Remote.Comparator<T>
A comparison function, which imposes a total ordering on some collection of objects.
|
static interface |
Remote.Consumer<T>
Represents an operation that accepts a single input argument and returns no result.
|
static interface |
Remote.DoubleBinaryOperator
Represents an operation upon two
double -valued operands and producing a double -valued result. |
static interface |
Remote.DoubleConsumer
Represents an operation that accepts a single
double -valued argument and returns no result. |
static interface |
Remote.DoubleFunction<R>
Represents a function that accepts a double-valued argument and produces a result.
|
static interface |
Remote.DoublePredicate
Represents a predicate (boolean-valued function) of one
double -valued argument. |
static interface |
Remote.DoubleSupplier
Represents a supplier of
double -valued results. |
static interface |
Remote.DoubleToIntFunction
Represents a function that accepts a double-valued argument and produces an int-valued result.
|
static interface |
Remote.DoubleToLongFunction
Represents a function that accepts a double-valued argument and produces a long-valued result.
|
static interface |
Remote.DoubleUnaryOperator
Represents an operation on a single
double -valued operand that produces a double -valued result. |
static interface |
Remote.Function<T,R>
Represents a function that accepts one argument and produces a result.
|
static interface |
Remote.IntBinaryOperator
Represents an operation upon two
int -valued operands and producing an int -valued result. |
static interface |
Remote.IntConsumer
Represents an operation that accepts a single
int -valued argument and returns no result. |
static interface |
Remote.IntFunction<R>
Represents a function that accepts an int-valued argument and produces a result.
|
static interface |
Remote.IntPredicate
Represents a predicate (boolean-valued function) of one
int -valued argument. |
static interface |
Remote.IntSupplier
Represents a supplier of
int -valued results. |
static interface |
Remote.IntToDoubleFunction
Represents a function that accepts an int-valued argument and produces a double-valued result.
|
static interface |
Remote.IntToLongFunction
Represents a function that accepts an int-valued argument and produces a long-valued result.
|
static interface |
Remote.IntUnaryOperator
Represents an operation on a single
int -valued operand that produces an int -valued result. |
static interface |
Remote.LongBinaryOperator
Represents an operation upon two
long -valued operands and producing a long -valued result. |
static interface |
Remote.LongConsumer
Represents an operation that accepts a single
long -valued argument and returns no result. |
static interface |
Remote.LongFunction<R>
Represents a function that accepts a long-valued argument and produces a result.
|
static interface |
Remote.LongPredicate
Represents a predicate (boolean-valued function) of one
long -valued argument. |
static interface |
Remote.LongSupplier
Represents a supplier of
long -valued results. |
static interface |
Remote.LongToDoubleFunction
Represents a function that accepts a long-valued argument and produces a double-valued result.
|
static interface |
Remote.LongToIntFunction
Represents a function that accepts a long-valued argument and produces an int-valued result.
|
static interface |
Remote.LongUnaryOperator
Represents an operation on a single
long -valued operand that produces a long -valued result. |
static interface |
Remote.ObjDoubleConsumer<T>
Represents an operation that accepts an object-valued and a
double -valued argument, and returns no result. |
static interface |
Remote.ObjIntConsumer<T>
Represents an operation that accepts an object-valued and a
int -valued argument, and returns no result. |
static interface |
Remote.ObjLongConsumer<T>
Represents an operation that accepts an object-valued and a
long -valued argument, and returns no result. |
static interface |
Remote.Predicate<T>
Represents a predicate (boolean-valued function) of one argument.
|
static interface |
Remote.Runnable
The
Runnable interface should be implemented by any class whose instances are intended to be executed by a thread. |
static interface |
Remote.Supplier<T>
Represents a supplier of results.
|
static interface |
Remote.ToDoubleBiFunction<T,U>
Represents a function that accepts two arguments and produces a double-valued result.
|
static interface |
Remote.ToDoubleFunction<T>
Represents a function that produces a double-valued result.
|
static interface |
Remote.ToIntBiFunction<T,U>
Represents a function that accepts two arguments and produces an int-valued result.
|
static interface |
Remote.ToIntFunction<T>
Represents a function that produces an int-valued result.
|
static interface |
Remote.ToLongBiFunction<T,U>
Represents a function that accepts two arguments and produces a long-valued result.
|
static interface |
Remote.ToLongFunction<T>
Represents a function that produces a long-valued result.
|
static interface |
Remote.UnaryOperator<T>
Represents an operation on a single operand that produces a result of the same type as its operand.
|
Constructor and Description |
---|
Remote() |
Modifier and Type | Method and Description |
---|---|
static <T,U> Remote.BiConsumer<T,U> |
biConsumer(Remote.BiConsumer<T,U> biConsumer)
Capture serializable BiConsumer.
|
static <T,U,R> Remote.BiFunction<T,U,R> |
biFunction(Remote.BiFunction<T,U,R> biFunction)
Capture serializable BiFunction.
|
static <T> Remote.BinaryOperator<T> |
binaryOperator(Remote.BinaryOperator<T> operator)
Capture serializable BinaryOperator.
|
static <T,U> Remote.BiPredicate<T,U> |
biPredicate(Remote.BiPredicate<T,U> biPredicate)
Capture serializable BiPredicate.
|
static Remote.BooleanSupplier |
booleanSupplier(Remote.BooleanSupplier supplier)
Capture serializable BooleanSupplier.
|
static <V> Remote.Callable<V> |
callable(Remote.Callable<V> callable)
Capture serializable Callable.
|
static <T> Remote.Comparator<T> |
comparator(Remote.Comparator<T> comparator)
Capture serializable Comparator.
|
static <T> Remote.Consumer<T> |
consumer(Remote.Consumer<T> consumer)
Capture serializable Consumer.
|
static Remote.DoubleBinaryOperator |
doubleBinaryOperator(Remote.DoubleBinaryOperator operator)
Capture serializable DoubleBinaryOperator.
|
static Remote.DoubleConsumer |
doubleConsumer(Remote.DoubleConsumer consumer)
Capture serializable DoubleConsumer.
|
static <R> Remote.DoubleFunction<R> |
doubleFunction(Remote.DoubleFunction<R> function)
Capture serializable DoubleFunction.
|
static Remote.DoublePredicate |
doublePredicate(Remote.DoublePredicate predicate)
Capture serializable DoublePredicate.
|
static Remote.DoubleSupplier |
doubleSupplier(Remote.DoubleSupplier supplier)
Capture serializable DoubleSupplier.
|
static Remote.DoubleToIntFunction |
doubleToIntFunction(Remote.DoubleToIntFunction function)
Capture serializable DoubleToIntFunction.
|
static Remote.DoubleToLongFunction |
doubleToLongFunction(Remote.DoubleToLongFunction function)
Capture serializable DoubleToLongFunction.
|
static Remote.DoubleUnaryOperator |
doubleUnaryOperator(Remote.DoubleUnaryOperator operator)
Capture serializable DoubleUnaryOperator.
|
static <T,R> Remote.Function<T,R> |
function(Remote.Function<T,R> function)
Capture serializable Function.
|
static Remote.IntBinaryOperator |
intBinaryOperator(Remote.IntBinaryOperator operator)
Capture serializable IntBinaryOperator.
|
static Remote.IntConsumer |
intConsumer(Remote.IntConsumer consumer)
Capture serializable IntConsumer.
|
static <R> Remote.IntFunction<R> |
intFunction(Remote.IntFunction<R> function)
Capture serializable IntFunction.
|
static Remote.IntPredicate |
intPredicate(Remote.IntPredicate predicate)
Capture serializable IntPredicate.
|
static Remote.IntSupplier |
intSupplier(Remote.IntSupplier supplier)
Capture serializable IntSupplier.
|
static Remote.IntToDoubleFunction |
intToDoubleFunction(Remote.IntToDoubleFunction function)
Capture serializable IntToDoubleFunction.
|
static Remote.IntToLongFunction |
intToLongFunction(Remote.IntToLongFunction function)
Capture serializable IntToLongFunction.
|
static Remote.IntUnaryOperator |
intUnaryOperator(Remote.IntUnaryOperator operator)
Capture serializable IntUnaryOperator.
|
static Remote.LongBinaryOperator |
longBinaryOperator(Remote.LongBinaryOperator operator)
Capture serializable LongBinaryOperator.
|
static Remote.LongConsumer |
longConsumer(Remote.LongConsumer consumer)
Capture serializable LongConsumer.
|
static <R> Remote.LongFunction<R> |
longFunction(Remote.LongFunction<R> function)
Capture serializable LongFunction.
|
static Remote.LongPredicate |
longPredicate(Remote.LongPredicate predicate)
Capture serializable LongPredicate.
|
static Remote.LongSupplier |
longSupplier(Remote.LongSupplier supplier)
Capture serializable LongSupplier.
|
static Remote.LongToDoubleFunction |
longToDoubleFunction(Remote.LongToDoubleFunction function)
Capture serializable LongToDoubleFunction.
|
static Remote.LongToIntFunction |
longToIntFunction(Remote.LongToIntFunction function)
Capture serializable LongToIntFunction.
|
static Remote.LongUnaryOperator |
longUnaryOperator(Remote.LongUnaryOperator operator)
Capture serializable LongUnaryOperator.
|
static <T> Remote.ObjDoubleConsumer<T> |
objDoubleConsumer(Remote.ObjDoubleConsumer<T> consumer)
Capture serializable ObjDoubleConsumer.
|
static <T> Remote.ObjIntConsumer<T> |
objIntConsumer(Remote.ObjIntConsumer<T> consumer)
Capture serializable ObjIntConsumer.
|
static <T> Remote.ObjLongConsumer<T> |
objLongConsumer(Remote.ObjLongConsumer<T> consumer)
Capture serializable ObjLongConsumer.
|
static <T> Remote.Predicate<T> |
predicate(Remote.Predicate<T> predicate)
Capture serializable Predicate.
|
static Remote.Runnable |
runnable(Remote.Runnable runnable)
Capture serializable Runnable.
|
static <T> Remote.Supplier<T> |
supplier(Remote.Supplier<T> supplier)
Capture serializable Supplier.
|
static <T,U> Remote.ToDoubleBiFunction<T,U> |
toDoubleBiFunction(Remote.ToDoubleBiFunction<T,U> biFunction)
Capture serializable ToDoubleBiFunction.
|
static <T> Remote.ToDoubleFunction<T> |
toDoubleFunction(Remote.ToDoubleFunction<T> function)
Capture serializable ToDoubleFunction.
|
static <T,U> Remote.ToIntBiFunction<T,U> |
toIntBiFunction(Remote.ToIntBiFunction<T,U> biFunction)
Capture serializable ToIntBiFunction.
|
static <T> Remote.ToIntFunction<T> |
toIntFunction(Remote.ToIntFunction<T> function)
Capture serializable ToIntFunction.
|
static <T,U> Remote.ToLongBiFunction<T,U> |
toLongBiFunction(Remote.ToLongBiFunction<T,U> biFunction)
Capture serializable ToLongBiFunction.
|
static <T> Remote.ToLongFunction<T> |
toLongFunction(Remote.ToLongFunction<T> function)
Capture serializable ToLongFunction.
|
static <T> Remote.UnaryOperator<T> |
unaryOperator(Remote.UnaryOperator<T> operator)
Capture serializable UnaryOperator.
|
public static <T> Remote.Consumer<T> consumer(Remote.Consumer<T> consumer)
T
- the type of the input to the operationconsumer
- lambda to capturepublic static <T,U> Remote.BiConsumer<T,U> biConsumer(Remote.BiConsumer<T,U> biConsumer)
T
- the type of the input to the operationU
- the type of the second argument to the operationbiConsumer
- lambda to capturepublic static Remote.DoubleConsumer doubleConsumer(Remote.DoubleConsumer consumer)
consumer
- lambda to capturepublic static Remote.IntConsumer intConsumer(Remote.IntConsumer consumer)
consumer
- lambda to capturepublic static Remote.LongConsumer longConsumer(Remote.LongConsumer consumer)
consumer
- lambda to capturepublic static <T> Remote.ObjDoubleConsumer<T> objDoubleConsumer(Remote.ObjDoubleConsumer<T> consumer)
T
- the type of the object argument to the operationconsumer
- lambda to capturepublic static <T> Remote.ObjIntConsumer<T> objIntConsumer(Remote.ObjIntConsumer<T> consumer)
T
- the type of the object argument to the operationconsumer
- lambda to capturepublic static <T> Remote.ObjLongConsumer<T> objLongConsumer(Remote.ObjLongConsumer<T> consumer)
T
- the type of the object argument to the operationconsumer
- lambda to capturepublic static <T,R> Remote.Function<T,R> function(Remote.Function<T,R> function)
T
- the type of the input to the functionR
- the type of the result of the functionfunction
- lambda to capturepublic static <T,U,R> Remote.BiFunction<T,U,R> biFunction(Remote.BiFunction<T,U,R> biFunction)
T
- the type of the first argument to the functionU
- the type of the second argument to the functionR
- the type of the result of the functionbiFunction
- lambda to capturepublic static <R> Remote.DoubleFunction<R> doubleFunction(Remote.DoubleFunction<R> function)
R
- the type of the result of the functionfunction
- lambda to capturepublic static Remote.DoubleToIntFunction doubleToIntFunction(Remote.DoubleToIntFunction function)
function
- lambda to capturepublic static Remote.DoubleToLongFunction doubleToLongFunction(Remote.DoubleToLongFunction function)
function
- lambda to capturepublic static <R> Remote.IntFunction<R> intFunction(Remote.IntFunction<R> function)
R
- the type of the result of the functionfunction
- lambda to capturepublic static Remote.IntToDoubleFunction intToDoubleFunction(Remote.IntToDoubleFunction function)
function
- lambda to capturepublic static Remote.IntToLongFunction intToLongFunction(Remote.IntToLongFunction function)
function
- lambda to capturepublic static <R> Remote.LongFunction<R> longFunction(Remote.LongFunction<R> function)
R
- the type of the result of the functionfunction
- lambda to capturepublic static Remote.LongToDoubleFunction longToDoubleFunction(Remote.LongToDoubleFunction function)
function
- lambda to capturepublic static Remote.LongToIntFunction longToIntFunction(Remote.LongToIntFunction function)
function
- lambda to capturepublic static <T> Remote.ToDoubleFunction<T> toDoubleFunction(Remote.ToDoubleFunction<T> function)
T
- the type of the input to the functionfunction
- lambda to capturepublic static <T> Remote.ToIntFunction<T> toIntFunction(Remote.ToIntFunction<T> function)
T
- the type of the input to the functionfunction
- lambda to capturepublic static <T> Remote.ToLongFunction<T> toLongFunction(Remote.ToLongFunction<T> function)
T
- the type of the input to the functionfunction
- lambda to capturepublic static <T,U> Remote.ToDoubleBiFunction<T,U> toDoubleBiFunction(Remote.ToDoubleBiFunction<T,U> biFunction)
T
- the type of the first argument to the functionU
- the type of the second argument to the functionbiFunction
- lambda to capturepublic static <T,U> Remote.ToIntBiFunction<T,U> toIntBiFunction(Remote.ToIntBiFunction<T,U> biFunction)
T
- the type of the first argument to the functionU
- the type of the second argument to the functionbiFunction
- lambda to capturepublic static <T,U> Remote.ToLongBiFunction<T,U> toLongBiFunction(Remote.ToLongBiFunction<T,U> biFunction)
T
- the type of the first argument to the functionU
- the type of the second argument to the functionbiFunction
- lambda to capturepublic static <T> Remote.Predicate<T> predicate(Remote.Predicate<T> predicate)
T
- the type of the input to the predicatepredicate
- lambda to capturepublic static <T,U> Remote.BiPredicate<T,U> biPredicate(Remote.BiPredicate<T,U> biPredicate)
T
- the type of the first argument to the predicateU
- the type of the second argument the predicatebiPredicate
- lambda to capturepublic static Remote.DoublePredicate doublePredicate(Remote.DoublePredicate predicate)
predicate
- lambda to capturepublic static Remote.IntPredicate intPredicate(Remote.IntPredicate predicate)
predicate
- lambda to capturepublic static Remote.LongPredicate longPredicate(Remote.LongPredicate predicate)
predicate
- lambda to capturepublic static <T> Remote.Supplier<T> supplier(Remote.Supplier<T> supplier)
T
- the type of results supplied by this suppliersupplier
- lambda to capturepublic static Remote.BooleanSupplier booleanSupplier(Remote.BooleanSupplier supplier)
supplier
- lambda to capturepublic static Remote.DoubleSupplier doubleSupplier(Remote.DoubleSupplier supplier)
supplier
- lambda to capturepublic static Remote.IntSupplier intSupplier(Remote.IntSupplier supplier)
supplier
- lambda to capturepublic static Remote.LongSupplier longSupplier(Remote.LongSupplier supplier)
supplier
- lambda to capturepublic static <T> Remote.BinaryOperator<T> binaryOperator(Remote.BinaryOperator<T> operator)
T
- the type of the operands and result of the operatoroperator
- lambda to capturepublic static Remote.DoubleBinaryOperator doubleBinaryOperator(Remote.DoubleBinaryOperator operator)
operator
- lambda to capturepublic static Remote.IntBinaryOperator intBinaryOperator(Remote.IntBinaryOperator operator)
operator
- lambda to capturepublic static Remote.LongBinaryOperator longBinaryOperator(Remote.LongBinaryOperator operator)
operator
- lambda to capturepublic static <T> Remote.UnaryOperator<T> unaryOperator(Remote.UnaryOperator<T> operator)
T
- the type of the operand and result of the operatoroperator
- lambda to capturepublic static Remote.DoubleUnaryOperator doubleUnaryOperator(Remote.DoubleUnaryOperator operator)
operator
- lambda to capturepublic static Remote.IntUnaryOperator intUnaryOperator(Remote.IntUnaryOperator operator)
operator
- lambda to capturepublic static Remote.LongUnaryOperator longUnaryOperator(Remote.LongUnaryOperator operator)
operator
- lambda to capturepublic static <T> Remote.Comparator<T> comparator(Remote.Comparator<T> comparator)
comparator
- lambda to capturepublic static Remote.Runnable runnable(Remote.Runnable runnable)
runnable
- lambda to capturepublic static <V> Remote.Callable<V> callable(Remote.Callable<V> callable)
callable
- lambda to capture