Interface TupleAccessor<TUPLE,COMPONENT>

Type Parameters:
TUPLE -
COMPONENT -
All Known Subinterfaces:
GenericTupleAccessor<D,C,K>, TupleBridge<D,C>, TupleBridge3<D,C>, TupleBridge4<D,C>, TupleMutator<DomainType,ComponentType>
All Known Implementing Classes:
GenericTupleAccessorForMap, GenericTupleAccessorFromListOfKeysBase, TupleAccessorForArrayOfInts, TupleAccessorForList, TupleAccessorRemap
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TupleAccessor<TUPLE,COMPONENT>
Functional interface for accessing components of a tuple.
Author:
Claus Stadler 11/09/2020
  • Method Summary

    Modifier and Type
    Method
    Description
    get(TUPLE tupleLike, int componentIdx)
     
    default <X> TupleAccessor<TUPLE,X>
    map(Function<? super COMPONENT,X> mapper)
    Create an accessor that passes the components through a mapper function