public class Named extends Object
toString implementation that returns a given name
string.andThen return
instances where the name is extended with " andThen "
and the string representation of the argument (which may, in turn,
again be a named instance).and, negate
and or methods implemented accordingly. In order
to create predicates with string representations that resemble
code (i.e. that use &&, !, and
|| for "and", "not" and "or", respectively) may be
created with the Predicates class.| Modifier and Type | Method and Description |
|---|---|
static <T,U> BiConsumer<T,U> |
biConsumer(String name,
BiConsumer<T,U> delegate)
Returns a new BiConsumer that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T,U,R> BiFunction<T,U,R> |
biFunction(String name,
BiFunction<T,U,R> delegate)
Returns a new BiFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> BinaryOperator<T> |
binaryOperator(String name,
BinaryOperator<T> delegate)
Returns a new BinaryOperator that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T,U> BiPredicate<T,U> |
biPredicate(String name,
BiPredicate<T,U> delegate)
Returns a new BiPredicate that has the given name as its
string representation, and performs the same operation
as the given one.
|
static BooleanSupplier |
booleanSupplier(String name,
BooleanSupplier delegate)
Returns a new BooleanSupplier that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> Consumer<T> |
consumer(String name,
Consumer<T> delegate)
Returns a new Consumer that has the given name as its
string representation, and performs the same operation
as the given one.
|
static DoubleBinaryOperator |
doubleBinaryOperator(String name,
DoubleBinaryOperator delegate)
Returns a new DoubleBinaryOperator that has the given name as its
string representation, and performs the same operation
as the given one.
|
static DoubleConsumer |
doubleConsumer(String name,
DoubleConsumer delegate)
Returns a new DoubleConsumer that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <R> DoubleFunction<R> |
doubleFunction(String name,
DoubleFunction<R> delegate)
Returns a new DoubleFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static DoublePredicate |
doublePredicate(String name,
DoublePredicate delegate)
Returns a new DoublePredicate that has the given name as its
string representation, and performs the same operation
as the given one.
|
static DoubleSupplier |
doubleSupplier(String name,
DoubleSupplier delegate)
Returns a new DoubleSupplier that has the given name as its
string representation, and performs the same operation
as the given one.
|
static DoubleToIntFunction |
doubleToIntFunction(String name,
DoubleToIntFunction delegate)
Returns a new DoubleToIntFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static DoubleToLongFunction |
doubleToLongFunction(String name,
DoubleToLongFunction delegate)
Returns a new DoubleToLongFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static DoubleUnaryOperator |
doubleUnaryOperator(String name,
DoubleUnaryOperator delegate)
Returns a new DoubleUnaryOperator that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T,R> Function<T,R> |
function(String name,
Function<T,R> delegate)
Returns a new Function that has the given name as its
string representation, and performs the same operation
as the given one.
|
static IntBinaryOperator |
intBinaryOperator(String name,
IntBinaryOperator delegate)
Returns a new IntBinaryOperator that has the given name as its
string representation, and performs the same operation
as the given one.
|
static IntConsumer |
intConsumer(String name,
IntConsumer delegate)
Returns a new IntConsumer that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <R> IntFunction<R> |
intFunction(String name,
IntFunction<R> delegate)
Returns a new IntFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static IntPredicate |
intPredicate(String name,
IntPredicate delegate)
Returns a new IntPredicate that has the given name as its
string representation, and performs the same operation
as the given one.
|
static IntSupplier |
intSupplier(String name,
IntSupplier delegate)
Returns a new IntSupplier that has the given name as its
string representation, and performs the same operation
as the given one.
|
static IntToDoubleFunction |
intToDoubleFunction(String name,
IntToDoubleFunction delegate)
Returns a new IntToDoubleFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static IntToLongFunction |
intToLongFunction(String name,
IntToLongFunction delegate)
Returns a new IntToLongFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static IntUnaryOperator |
intUnaryOperator(String name,
IntUnaryOperator delegate)
Returns a new IntUnaryOperator that has the given name as its
string representation, and performs the same operation
as the given one.
|
static LongBinaryOperator |
longBinaryOperator(String name,
LongBinaryOperator delegate)
Returns a new LongBinaryOperator that has the given name as its
string representation, and performs the same operation
as the given one.
|
static LongConsumer |
longConsumer(String name,
LongConsumer delegate)
Returns a new LongConsumer that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <R> LongFunction<R> |
longFunction(String name,
LongFunction<R> delegate)
Returns a new LongFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static LongPredicate |
longPredicate(String name,
LongPredicate delegate)
Returns a new LongPredicate that has the given name as its
string representation, and performs the same operation
as the given one.
|
static LongSupplier |
longSupplier(String name,
LongSupplier delegate)
Returns a new LongSupplier that has the given name as its
string representation, and performs the same operation
as the given one.
|
static LongToDoubleFunction |
longToDoubleFunction(String name,
LongToDoubleFunction delegate)
Returns a new LongToDoubleFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static LongToIntFunction |
longToIntFunction(String name,
LongToIntFunction delegate)
Returns a new LongToIntFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static LongUnaryOperator |
longUnaryOperator(String name,
LongUnaryOperator delegate)
Returns a new LongUnaryOperator that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> ObjDoubleConsumer<T> |
objDoubleConsumer(String name,
ObjDoubleConsumer<T> delegate)
Returns a new ObjDoubleConsumer that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> ObjIntConsumer<T> |
objIntConsumer(String name,
ObjIntConsumer<T> delegate)
Returns a new ObjIntConsumer that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> ObjLongConsumer<T> |
objLongConsumer(String name,
ObjLongConsumer<T> delegate)
Returns a new ObjLongConsumer that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> Predicate<T> |
predicate(String name,
Predicate<T> delegate)
Returns a new Predicate that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> Supplier<T> |
supplier(String name,
Supplier<T> delegate)
Returns a new Supplier that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T,U> ToDoubleBiFunction<T,U> |
toDoubleBiFunction(String name,
ToDoubleBiFunction<T,U> delegate)
Returns a new ToDoubleBiFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> ToDoubleFunction<T> |
toDoubleFunction(String name,
ToDoubleFunction<T> delegate)
Returns a new ToDoubleFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T,U> ToIntBiFunction<T,U> |
toIntBiFunction(String name,
ToIntBiFunction<T,U> delegate)
Returns a new ToIntBiFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> ToIntFunction<T> |
toIntFunction(String name,
ToIntFunction<T> delegate)
Returns a new ToIntFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T,U> ToLongBiFunction<T,U> |
toLongBiFunction(String name,
ToLongBiFunction<T,U> delegate)
Returns a new ToLongBiFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> ToLongFunction<T> |
toLongFunction(String name,
ToLongFunction<T> delegate)
Returns a new ToLongFunction that has the given name as its
string representation, and performs the same operation
as the given one.
|
static <T> UnaryOperator<T> |
unaryOperator(String name,
UnaryOperator<T> delegate)
Returns a new UnaryOperator that has the given name as its
string representation, and performs the same operation
as the given one.
|
public static <T,U> BiConsumer<T,U> biConsumer(String name, BiConsumer<T,U> delegate)
T - The first argument typeU - The second argument typename - The namedelegate - The delegatepublic static <T,U,R> BiFunction<T,U,R> biFunction(String name, BiFunction<T,U,R> delegate)
T - The first argument typeU - The second argument typeR - The result typename - The namedelegate - The delegatepublic static <T> BinaryOperator<T> binaryOperator(String name, BinaryOperator<T> delegate)
T - The operand and result typename - The namedelegate - The delegatepublic static <T,U> BiPredicate<T,U> biPredicate(String name, BiPredicate<T,U> delegate)
T - The first argument typeU - The second argument typename - The namedelegate - The delegatepublic static BooleanSupplier booleanSupplier(String name, BooleanSupplier delegate)
name - The namedelegate - The delegatepublic static <T> Consumer<T> consumer(String name, Consumer<T> delegate)
T - The argument typename - The namedelegate - The delegatepublic static DoubleBinaryOperator doubleBinaryOperator(String name, DoubleBinaryOperator delegate)
name - The namedelegate - The delegatepublic static DoubleConsumer doubleConsumer(String name, DoubleConsumer delegate)
name - The namedelegate - The delegatepublic static <R> DoubleFunction<R> doubleFunction(String name, DoubleFunction<R> delegate)
R - The result typename - The namedelegate - The delegatepublic static DoublePredicate doublePredicate(String name, DoublePredicate delegate)
name - The namedelegate - The delegatepublic static DoubleSupplier doubleSupplier(String name, DoubleSupplier delegate)
name - The namedelegate - The delegatepublic static DoubleToIntFunction doubleToIntFunction(String name, DoubleToIntFunction delegate)
name - The namedelegate - The delegatepublic static DoubleToLongFunction doubleToLongFunction(String name, DoubleToLongFunction delegate)
name - The namedelegate - The delegatepublic static DoubleUnaryOperator doubleUnaryOperator(String name, DoubleUnaryOperator delegate)
name - The namedelegate - The delegatepublic static <T,R> Function<T,R> function(String name, Function<T,R> delegate)
T - The argument typeR - The result typename - The namedelegate - The delegatepublic static IntBinaryOperator intBinaryOperator(String name, IntBinaryOperator delegate)
name - The namedelegate - The delegatepublic static IntConsumer intConsumer(String name, IntConsumer delegate)
name - The namedelegate - The delegatepublic static <R> IntFunction<R> intFunction(String name, IntFunction<R> delegate)
R - The result typename - The namedelegate - The delegatepublic static IntPredicate intPredicate(String name, IntPredicate delegate)
name - The namedelegate - The delegatepublic static IntSupplier intSupplier(String name, IntSupplier delegate)
name - The namedelegate - The delegatepublic static IntToDoubleFunction intToDoubleFunction(String name, IntToDoubleFunction delegate)
name - The namedelegate - The delegatepublic static IntToLongFunction intToLongFunction(String name, IntToLongFunction delegate)
name - The namedelegate - The delegatepublic static IntUnaryOperator intUnaryOperator(String name, IntUnaryOperator delegate)
name - The namedelegate - The delegatepublic static LongBinaryOperator longBinaryOperator(String name, LongBinaryOperator delegate)
name - The namedelegate - The delegatepublic static LongConsumer longConsumer(String name, LongConsumer delegate)
name - The namedelegate - The delegatepublic static <R> LongFunction<R> longFunction(String name, LongFunction<R> delegate)
R - The result typename - The namedelegate - The delegatepublic static LongPredicate longPredicate(String name, LongPredicate delegate)
name - The namedelegate - The delegatepublic static LongSupplier longSupplier(String name, LongSupplier delegate)
name - The namedelegate - The delegatepublic static LongToDoubleFunction longToDoubleFunction(String name, LongToDoubleFunction delegate)
name - The namedelegate - The delegatepublic static LongToIntFunction longToIntFunction(String name, LongToIntFunction delegate)
name - The namedelegate - The delegatepublic static LongUnaryOperator longUnaryOperator(String name, LongUnaryOperator delegate)
name - The namedelegate - The delegatepublic static <T> ObjDoubleConsumer<T> objDoubleConsumer(String name, ObjDoubleConsumer<T> delegate)
T - The argument typename - The namedelegate - The delegatepublic static <T> ObjIntConsumer<T> objIntConsumer(String name, ObjIntConsumer<T> delegate)
T - The argument typename - The namedelegate - The delegatepublic static <T> ObjLongConsumer<T> objLongConsumer(String name, ObjLongConsumer<T> delegate)
T - The argument typename - The namedelegate - The delegatepublic static <T> Predicate<T> predicate(String name, Predicate<T> delegate)
T - The argument typename - The namedelegate - The delegatepublic static <T> Supplier<T> supplier(String name, Supplier<T> delegate)
T - The result typename - The namedelegate - The delegatepublic static <T,U> ToDoubleBiFunction<T,U> toDoubleBiFunction(String name, ToDoubleBiFunction<T,U> delegate)
T - The first argument typeU - The second argument typename - The namedelegate - The delegatepublic static <T> ToDoubleFunction<T> toDoubleFunction(String name, ToDoubleFunction<T> delegate)
T - The argument typename - The namedelegate - The delegatepublic static <T,U> ToIntBiFunction<T,U> toIntBiFunction(String name, ToIntBiFunction<T,U> delegate)
T - The first argument typeU - The second argument typename - The namedelegate - The delegatepublic static <T> ToIntFunction<T> toIntFunction(String name, ToIntFunction<T> delegate)
T - The first argument typename - The namedelegate - The delegatepublic static <T,U> ToLongBiFunction<T,U> toLongBiFunction(String name, ToLongBiFunction<T,U> delegate)
T - The first argument typeU - The second argument typename - The namedelegate - The delegatepublic static <T> ToLongFunction<T> toLongFunction(String name, ToLongFunction<T> delegate)
T - The argument typename - The namedelegate - The delegatepublic static <T> UnaryOperator<T> unaryOperator(String name, UnaryOperator<T> delegate)
T - The argument typename - The namedelegate - The delegateCopyright © 2020. All rights reserved.