Interface TupleExporter.ExportElementFunction<TUPLE_TYPE>

Enclosing interface:
TupleExporter<TUPLE_TYPE>
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 static interface TupleExporter.ExportElementFunction<TUPLE_TYPE>
  • Method Summary

    Modifier and Type
    Method
    Description
    exportElement(TUPLE_TYPE tuple, int elementIndex)
    Export a single element from the tuple, identified by its element index, to an Object.
  • Method Details

    • exportElement

      Object exportElement(@NotNull TUPLE_TYPE tuple, int elementIndex)
      Export a single element from the tuple, identified by its element index, to an Object. This interface is intended to be compatible with both TupleExporter.exportElement(Object, int) and TupleExporter.exportElementReinterpreted(Object, int), and consequently does not specify whether the result will be reinterpreted.
      Parameters:
      tuple - The tuple to export an element from
      elementIndex - The element index to export
      Returns:
      The exported element, boxed when necessary