com.ibm.streamsx.topology.logic
Class Logic
- java.lang.Object
-
- com.ibm.streamsx.topology.logic.Logic
-
public class Logic extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description Logic()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static <T,U,R> BiFunction<T,java.util.List<U>,R>
first(BiFunction<T,U,R> logic)
Wrap aBiFunction
instance that operators on a single value for the second parameter (typeU
) as aBiFunction
that takes anList
.static <T> UnaryOperator<T>
identity()
static <T> Function<T,java.lang.Object>
notKeyed()
-
-
-
Method Detail
-
identity
public static <T> UnaryOperator<T> identity()
-
notKeyed
public static <T> Function<T,java.lang.Object> notKeyed()
-
first
public static <T,U,R> BiFunction<T,java.util.List<U>,R> first(BiFunction<T,U,R> logic)
Wrap aBiFunction
instance that operators on a single value for the second parameter (typeU
) as aBiFunction
that takes anList
. Only the first value from the list will be passed to tologic
. If the list is empty, thennull
is passed.- Parameters:
logic
- Logic to be called.- Returns:
- Wrapper
Function2
that accepts anList
of typeU
and passes the first value ornull
tologic
.
-
-