Interface Selector<T>

Type Parameters:
T - The type of the values to select from.
All Superinterfaces:
Function<T[],Integer>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @ClassVersion(sourceVersion="$Id: Selector.java 1031 2022-04-07 22:43:02Z tquadrat $") @API(status=STABLE, since="0.0.7") public interface Selector<T> extends Function<T[],Integer>
A selector function takes an array of values and returns the respective array index for the selected value. See Selectors for some implementations of this interface.
Author:
Dominic Fox
Modified by:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: Selector.java 1031 2022-04-07 22:43:02Z tquadrat $
Since:
0.0.7
UML Diagram
UML Diagram for "org.tquadrat.foundation.stream.Selector"

UML Diagram for "org.tquadrat.foundation.stream.Selector"

UML Diagram for "org.tquadrat.foundation.stream.Selector"
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    apply(T[] t)

    Methods inherited from interface java.util.function.Function Link icon

    andThen, compose