Package uk.gov.gchq.koryphe.tuple
Class TupleOutputAdapter<R,FO>
- java.lang.Object
-
- uk.gov.gchq.koryphe.tuple.TupleOutputAdapter<R,FO>
-
- Type Parameters:
R
- The type of reference used by tuples.FO
- The adapted output type.
- All Implemented Interfaces:
BiFunction<Tuple<R>,FO,Tuple<R>>
public class TupleOutputAdapter<R,FO> extends Object implements BiFunction<Tuple<R>,FO,Tuple<R>>
-
-
Constructor Summary
Constructors Constructor Description TupleOutputAdapter()
Create a newTupleMask
.TupleOutputAdapter(R[] projection)
Create a newTupleMask
with the given field references.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tuple<R>
apply(Tuple<R> state, FO output)
boolean
equals(Object o)
R[]
getProjection()
int
hashCode()
void
setProjection(R[] projection)
Set thisTupleMask
to refer to a tuple of field references.-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Constructor Detail
-
TupleOutputAdapter
public TupleOutputAdapter()
Create a newTupleMask
.
-
TupleOutputAdapter
public TupleOutputAdapter(R[] projection)
Create a newTupleMask
with the given field references.- Parameters:
projection
- Field references.
-
-