Class IterableFlatten<I_ITEM>
- java.lang.Object
-
- uk.gov.gchq.koryphe.function.KorypheFunction<Iterable<I_ITEM>,I_ITEM>
-
- uk.gov.gchq.koryphe.impl.function.IterableFlatten<I_ITEM>
-
- Type Parameters:
I_ITEM
- the type of object in the iterable
public class IterableFlatten<I_ITEM> extends KorypheFunction<Iterable<I_ITEM>,I_ITEM>
AIterableFlatten
is aFunction
that takes items from anIterable
and combines them into a single result based on a providedBinaryOperator
. Anynull
items are ignored.
-
-
Constructor Summary
Constructors Constructor Description IterableFlatten()
IterableFlatten(BinaryOperator<I_ITEM> operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I_ITEM
apply(Iterable<I_ITEM> items)
boolean
equals(Object o)
BinaryOperator<I_ITEM>
getOperator()
int
hashCode()
void
setOperator(BinaryOperator<I_ITEM> operator)
-
-
-
Constructor Detail
-
IterableFlatten
public IterableFlatten()
-
IterableFlatten
public IterableFlatten(BinaryOperator<I_ITEM> operator)
-
-
Method Detail
-
getOperator
public BinaryOperator<I_ITEM> getOperator()
-
setOperator
public void setOperator(BinaryOperator<I_ITEM> operator)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classKorypheFunction<Iterable<I_ITEM>,I_ITEM>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classKorypheFunction<Iterable<I_ITEM>,I_ITEM>
-
-