Class NthItem<T>
- java.lang.Object
-
- uk.gov.gchq.koryphe.function.KorypheFunction<Iterable<T>,T>
-
- uk.gov.gchq.koryphe.impl.function.NthItem<T>
-
- Type Parameters:
T
- the type of objects in the iterable
public class NthItem<T> extends KorypheFunction<Iterable<T>,T>
ANthItem
is aKorypheFunction
that returns an item based on user selection, from anIterable
of items of type T
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
apply(Iterable<T> input)
boolean
equals(Object o)
int
getSelection()
int
hashCode()
void
setSelection(int selection)
-
-
-
Method Detail
-
setSelection
public void setSelection(int selection)
-
getSelection
public int getSelection()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classKorypheFunction<Iterable<T>,T>
-
-