public class Logic
extends java.lang.Object
| Constructor and Description |
|---|
Logic() |
| Modifier and Type | Method and Description |
|---|---|
static <T,U,R> BiFunction<T,java.util.List<U>,R> |
first(BiFunction<T,U,R> logic)
Wrap a
BiFunction instance that operators on a single value for
the second parameter (type U) as a BiFunction that takes
an List. |
static <T> UnaryOperator<T> |
identity() |
static <T> Function<T,java.lang.Object> |
notKeyed() |
public static <T> UnaryOperator<T> identity()
public static <T> Function<T,java.lang.Object> notKeyed()
public static <T,U,R> BiFunction<T,java.util.List<U>,R> first(BiFunction<T,U,R> logic)
BiFunction instance that operators on a single value for
the second parameter (type U) as a BiFunction that takes
an List. Only the first value from the list will be passed to to
logic. If the list is empty, then null is passed.logic - Logic to be called.Function2 that accepts an List of type
U and passes the first value or null to logic.