Package com.gengoai.function
Interface Serialized
-
public interface Serialized
The interface Serialized.
-
-
Method Summary
Static Methods Modifier and Type Method Description static <T,U>
SerializableBiPredicate<T,U>and(SerializableBiPredicate<? super T,? super U> p1, SerializableBiPredicate<? super T,? super U> p2)
And serializable bi predicate.static <T> SerializablePredicate<T>
and(SerializablePredicate<? super T> p1, SerializablePredicate<? super T> p2)
And serializable predicate.static <T,U>
BiConsumer<T,U>biConsumer(SerializableBiConsumer<T,U> serialized)
Generates a serialized version of BiConsumerstatic <T,U,R>
BiFunction<T,U,R>biFunction(SerializableBiFunction<T,U,R> serialized)
Generates a serialized version of BiFunctionstatic <T> BinaryOperator<T>
binaryOperator(SerializableBinaryOperator<T> serialized)
Generates a serialized version of BinaryOperatorstatic <T,U>
BiPredicate<T,U>biPredicate(SerializableBiPredicate<T,U> serialized)
Generates a serialized version of BiPredicatestatic BooleanSupplier
booleanSupplier(SerializableBooleanSupplier serialized)
Generates a serialized version of BooleanSupplierstatic <T> Consumer<T>
consumer(SerializableConsumer<T> serialized)
Generates a serialized version of Consumerstatic DoubleBinaryOperator
doubleBinaryOperator(SerializableDoubleBinaryOperator serialized)
Generates a serialized version of DoubleBinaryOperatorstatic DoubleConsumer
doubleConsumer(SerializableDoubleConsumer serialized)
Generates a serialized version of DoubleConsumerstatic <R> DoubleFunction<R>
doubleFunction(SerializableDoubleFunction<R> serialized)
Generates a serialized version of DoubleFunctionstatic DoublePredicate
doublePredicate(SerializableDoublePredicate serialized)
Generates a serialized version of DoublePredicatestatic DoubleSupplier
doubleSupplier(SerializableDoubleSupplier serialized)
Generates a serialized version of DoubleSupplierstatic DoubleToIntFunction
doubleToIntFunction(SerializableDoubleToIntFunction serialized)
Generates a serialized version of DoubleToIntFunctionstatic DoubleToLongFunction
doubleToLongFunction(SerializableDoubleToLongFunction serialized)
Generates a serialized version of DoubleToLongFunctionstatic DoubleUnaryOperator
doubleUnaryOperator(SerializableDoubleUnaryOperator serialized)
Generates a serialized version of DoubleUnaryOperatorstatic <T,R>
Function<T,R>function(SerializableFunction<T,R> serialized)
Generates a serialized version of Functionstatic IntBinaryOperator
intBinaryOperator(SerializableIntBinaryOperator serialized)
Generates a serialized version of IntBinaryOperatorstatic IntConsumer
intConsumer(SerializableIntConsumer serialized)
Generates a serialized version of IntConsumerstatic <R> IntFunction<R>
intFunction(SerializableIntFunction<R> serialized)
Generates a serialized version of IntFunctionstatic IntPredicate
intPredicate(SerializableIntPredicate serialized)
Generates a serialized version of IntPredicatestatic IntSupplier
intSupplier(SerializableIntSupplier serialized)
Generates a serialized version of IntSupplierstatic IntToDoubleFunction
intToDoubleFunction(SerializableIntToDoubleFunction serialized)
Generates a serialized version of IntToDoubleFunctionstatic IntToLongFunction
intToLongFunction(SerializableIntToLongFunction serialized)
Generates a serialized version of IntToLongFunctionstatic IntUnaryOperator
intUnaryOperator(SerializableIntUnaryOperator serialized)
Generates a serialized version of IntUnaryOperatorstatic LongBinaryOperator
longBinaryOperator(SerializableLongBinaryOperator serialized)
Generates a serialized version of LongBinaryOperatorstatic LongConsumer
longConsumer(SerializableLongConsumer serialized)
Generates a serialized version of LongConsumerstatic <R> LongFunction<R>
longFunction(SerializableLongFunction<R> serialized)
Generates a serialized version of LongFunctionstatic LongPredicate
longPredicate(SerializableLongPredicate serialized)
Generates a serialized version of LongPredicatestatic LongSupplier
longSupplier(SerializableLongSupplier serialized)
Generates a serialized version of LongSupplierstatic LongToDoubleFunction
longToDoubleFunction(SerializableLongToDoubleFunction serialized)
Generates a serialized version of LongToDoubleFunctionstatic LongToIntFunction
longToIntFunction(SerializableLongToIntFunction serialized)
Generates a serialized version of LongToIntFunctionstatic LongUnaryOperator
longUnaryOperator(SerializableLongUnaryOperator serialized)
Generates a serialized version of LongUnaryOperatorstatic <T,U>
SerializableBiPredicate<T,U>negate(SerializableBiPredicate<? super T,? super U> p1)
Negate serializable bi predicate.static <T> SerializablePredicate<T>
negate(SerializablePredicate<? super T> p1)
Negate serializable predicate.static <T> ObjDoubleConsumer<T>
objDoubleConsumer(SerializableObjDoubleConsumer<T> serialized)
Generates a serialized version of ObjDoubleConsumerstatic <T> ObjIntConsumer<T>
objIntConsumer(SerializableObjIntConsumer<T> serialized)
Generates a serialized version of ObjIntConsumerstatic <T> ObjLongConsumer<T>
objLongConsumer(SerializableObjLongConsumer<T> serialized)
Generates a serialized version of ObjLongConsumerstatic <T,U>
SerializableBiPredicate<T,U>or(SerializableBiPredicate<? super T,? super U> p1, SerializableBiPredicate<? super T,? super U> p2)
Or serializable bi predicate.static <T> SerializablePredicate<T>
or(SerializablePredicate<? super T> p1, SerializablePredicate<? super T> p2)
Or serializable predicate.static <T> Predicate<T>
predicate(SerializablePredicate<T> serialized)
Generates a serialized version of Predicatestatic Runnable
runnable(SerializableRunnable runnable)
Runnable runnable.static <T> Supplier<T>
supplier(SerializableSupplier<T> serialized)
Generates a serialized version of Supplierstatic <T,U>
ToDoubleBiFunction<T,U>toDoubleBiFunction(SerializableToDoubleBiFunction<T,U> serialized)
Generates a serialized version of ToDoubleBiFunctionstatic <T> ToDoubleFunction<T>
toDoubleFunction(SerializableToDoubleFunction<T> serialized)
Generates a serialized version of ToDoubleFunctionstatic <T,U>
ToIntBiFunction<T,U>toIntBiFunction(SerializableToIntBiFunction<T,U> serialized)
Generates a serialized version of ToIntBiFunctionstatic <T> ToIntFunction<T>
toIntFunction(SerializableToIntFunction<T> serialized)
Generates a serialized version of ToIntFunctionstatic <T,U>
ToLongBiFunction<T,U>toLongBiFunction(SerializableToLongBiFunction<T,U> serialized)
Generates a serialized version of ToLongBiFunctionstatic <T> ToLongFunction<T>
toLongFunction(SerializableToLongFunction<T> serialized)
Generates a serialized version of ToLongFunctionstatic <T> UnaryOperator<T>
unaryOperator(SerializableUnaryOperator<T> serialized)
Generates a serialized version of UnaryOperator
-
-
-
Method Detail
-
runnable
static Runnable runnable(SerializableRunnable runnable)
Runnable runnable.- Parameters:
runnable
- the runnable- Returns:
- the runnable
-
and
static <T> SerializablePredicate<T> and(SerializablePredicate<? super T> p1, SerializablePredicate<? super T> p2)
And serializable predicate.- Type Parameters:
T
- the type parameter- Parameters:
p1
- the p 1p2
- the p 2- Returns:
- the serializable predicate
-
or
static <T> SerializablePredicate<T> or(SerializablePredicate<? super T> p1, SerializablePredicate<? super T> p2)
Or serializable predicate.- Type Parameters:
T
- the type parameter- Parameters:
p1
- the p 1p2
- the p 2- Returns:
- the serializable predicate
-
negate
static <T> SerializablePredicate<T> negate(SerializablePredicate<? super T> p1)
Negate serializable predicate.- Type Parameters:
T
- the type parameter- Parameters:
p1
- the p 1- Returns:
- the serializable predicate
-
and
static <T,U> SerializableBiPredicate<T,U> and(SerializableBiPredicate<? super T,? super U> p1, SerializableBiPredicate<? super T,? super U> p2)
And serializable bi predicate.- Type Parameters:
T
- the type parameterU
- the type parameter- Parameters:
p1
- the p 1p2
- the p 2- Returns:
- the serializable bi predicate
-
or
static <T,U> SerializableBiPredicate<T,U> or(SerializableBiPredicate<? super T,? super U> p1, SerializableBiPredicate<? super T,? super U> p2)
Or serializable bi predicate.- Type Parameters:
T
- the type parameterU
- the type parameter- Parameters:
p1
- the p 1p2
- the p 2- Returns:
- the serializable bi predicate
-
negate
static <T,U> SerializableBiPredicate<T,U> negate(SerializableBiPredicate<? super T,? super U> p1)
Negate serializable bi predicate.- Type Parameters:
T
- the type parameterU
- the type parameter- Parameters:
p1
- the p 1- Returns:
- the serializable bi predicate
-
doubleToIntFunction
static DoubleToIntFunction doubleToIntFunction(SerializableDoubleToIntFunction serialized)
Generates a serialized version of DoubleToIntFunction- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
intToDoubleFunction
static IntToDoubleFunction intToDoubleFunction(SerializableIntToDoubleFunction serialized)
Generates a serialized version of IntToDoubleFunction- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
consumer
static <T> Consumer<T> consumer(SerializableConsumer<T> serialized)
Generates a serialized version of Consumer- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
intPredicate
static IntPredicate intPredicate(SerializableIntPredicate serialized)
Generates a serialized version of IntPredicate- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
objLongConsumer
static <T> ObjLongConsumer<T> objLongConsumer(SerializableObjLongConsumer<T> serialized)
Generates a serialized version of ObjLongConsumer- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
biPredicate
static <T,U> BiPredicate<T,U> biPredicate(SerializableBiPredicate<T,U> serialized)
Generates a serialized version of BiPredicate- Type Parameters:
T
- Functional parameterU
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
doubleUnaryOperator
static DoubleUnaryOperator doubleUnaryOperator(SerializableDoubleUnaryOperator serialized)
Generates a serialized version of DoubleUnaryOperator- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
intUnaryOperator
static IntUnaryOperator intUnaryOperator(SerializableIntUnaryOperator serialized)
Generates a serialized version of IntUnaryOperator- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
longUnaryOperator
static LongUnaryOperator longUnaryOperator(SerializableLongUnaryOperator serialized)
Generates a serialized version of LongUnaryOperator- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
booleanSupplier
static BooleanSupplier booleanSupplier(SerializableBooleanSupplier serialized)
Generates a serialized version of BooleanSupplier- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
intSupplier
static IntSupplier intSupplier(SerializableIntSupplier serialized)
Generates a serialized version of IntSupplier- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
intBinaryOperator
static IntBinaryOperator intBinaryOperator(SerializableIntBinaryOperator serialized)
Generates a serialized version of IntBinaryOperator- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
objIntConsumer
static <T> ObjIntConsumer<T> objIntConsumer(SerializableObjIntConsumer<T> serialized)
Generates a serialized version of ObjIntConsumer- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
longBinaryOperator
static LongBinaryOperator longBinaryOperator(SerializableLongBinaryOperator serialized)
Generates a serialized version of LongBinaryOperator- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
unaryOperator
static <T> UnaryOperator<T> unaryOperator(SerializableUnaryOperator<T> serialized)
Generates a serialized version of UnaryOperator- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
binaryOperator
static <T> BinaryOperator<T> binaryOperator(SerializableBinaryOperator<T> serialized)
Generates a serialized version of BinaryOperator- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
predicate
static <T> Predicate<T> predicate(SerializablePredicate<T> serialized)
Generates a serialized version of Predicate- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
toDoubleFunction
static <T> ToDoubleFunction<T> toDoubleFunction(SerializableToDoubleFunction<T> serialized)
Generates a serialized version of ToDoubleFunction- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
supplier
static <T> Supplier<T> supplier(SerializableSupplier<T> serialized)
Generates a serialized version of Supplier- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
toDoubleBiFunction
static <T,U> ToDoubleBiFunction<T,U> toDoubleBiFunction(SerializableToDoubleBiFunction<T,U> serialized)
Generates a serialized version of ToDoubleBiFunction- Type Parameters:
T
- Functional parameterU
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
longPredicate
static LongPredicate longPredicate(SerializableLongPredicate serialized)
Generates a serialized version of LongPredicate- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
biConsumer
static <T,U> BiConsumer<T,U> biConsumer(SerializableBiConsumer<T,U> serialized)
Generates a serialized version of BiConsumer- Type Parameters:
T
- Functional parameterU
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
longSupplier
static LongSupplier longSupplier(SerializableLongSupplier serialized)
Generates a serialized version of LongSupplier- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
toLongFunction
static <T> ToLongFunction<T> toLongFunction(SerializableToLongFunction<T> serialized)
Generates a serialized version of ToLongFunction- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
intFunction
static <R> IntFunction<R> intFunction(SerializableIntFunction<R> serialized)
Generates a serialized version of IntFunction- Type Parameters:
R
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
intConsumer
static IntConsumer intConsumer(SerializableIntConsumer serialized)
Generates a serialized version of IntConsumer- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
biFunction
static <T,U,R> BiFunction<T,U,R> biFunction(SerializableBiFunction<T,U,R> serialized)
Generates a serialized version of BiFunction- Type Parameters:
T
- Functional parameterU
- Functional parameterR
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
longToDoubleFunction
static LongToDoubleFunction longToDoubleFunction(SerializableLongToDoubleFunction serialized)
Generates a serialized version of LongToDoubleFunction- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
doubleBinaryOperator
static DoubleBinaryOperator doubleBinaryOperator(SerializableDoubleBinaryOperator serialized)
Generates a serialized version of DoubleBinaryOperator- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
longFunction
static <R> LongFunction<R> longFunction(SerializableLongFunction<R> serialized)
Generates a serialized version of LongFunction- Type Parameters:
R
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
longToIntFunction
static LongToIntFunction longToIntFunction(SerializableLongToIntFunction serialized)
Generates a serialized version of LongToIntFunction- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
toLongBiFunction
static <T,U> ToLongBiFunction<T,U> toLongBiFunction(SerializableToLongBiFunction<T,U> serialized)
Generates a serialized version of ToLongBiFunction- Type Parameters:
T
- Functional parameterU
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
doublePredicate
static DoublePredicate doublePredicate(SerializableDoublePredicate serialized)
Generates a serialized version of DoublePredicate- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
doubleFunction
static <R> DoubleFunction<R> doubleFunction(SerializableDoubleFunction<R> serialized)
Generates a serialized version of DoubleFunction- Type Parameters:
R
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
longConsumer
static LongConsumer longConsumer(SerializableLongConsumer serialized)
Generates a serialized version of LongConsumer- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
function
static <T,R> Function<T,R> function(SerializableFunction<T,R> serialized)
Generates a serialized version of Function- Type Parameters:
T
- Functional parameterR
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
doubleToLongFunction
static DoubleToLongFunction doubleToLongFunction(SerializableDoubleToLongFunction serialized)
Generates a serialized version of DoubleToLongFunction- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
doubleConsumer
static DoubleConsumer doubleConsumer(SerializableDoubleConsumer serialized)
Generates a serialized version of DoubleConsumer- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
intToLongFunction
static IntToLongFunction intToLongFunction(SerializableIntToLongFunction serialized)
Generates a serialized version of IntToLongFunction- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
toIntFunction
static <T> ToIntFunction<T> toIntFunction(SerializableToIntFunction<T> serialized)
Generates a serialized version of ToIntFunction- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
doubleSupplier
static DoubleSupplier doubleSupplier(SerializableDoubleSupplier serialized)
Generates a serialized version of DoubleSupplier- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
toIntBiFunction
static <T,U> ToIntBiFunction<T,U> toIntBiFunction(SerializableToIntBiFunction<T,U> serialized)
Generates a serialized version of ToIntBiFunction- Type Parameters:
T
- Functional parameterU
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
objDoubleConsumer
static <T> ObjDoubleConsumer<T> objDoubleConsumer(SerializableObjDoubleConsumer<T> serialized)
Generates a serialized version of ObjDoubleConsumer- Type Parameters:
T
- Functional parameter- Parameters:
serialized
- The serialized functional- Returns:
- The serialized functional.
-
-