Class FirstItem<T>
- java.lang.Object
-
- uk.gov.gchq.koryphe.function.KorypheFunction<Iterable<T>,T>
-
- uk.gov.gchq.koryphe.impl.function.FirstItem<T>
-
- Type Parameters:
T
- the type of objects in the iterable
public class FirstItem<T> extends KorypheFunction<Iterable<T>,T>
AFirstItem
is aKorypheFunction
that returns the first item from a providedIterable
of items of type T
-
-
Constructor Summary
Constructors Constructor Description FirstItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
apply(Iterable<T> input)
-
Methods inherited from class uk.gov.gchq.koryphe.function.KorypheFunction
equals, hashCode
-
-