Interface GeneratedDispatcher.Arity1

Enclosing interface:
GeneratedDispatcher
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 GeneratedDispatcher.Arity1
Array-free companion for targets taking exactly one value beyond the receiver. A separate single-method interface so each table is adapted by one LambdaMetafactory linkage.
  • Method Summary

    Modifier and Type
    Method
    Description
    dispatch1(int id, Object owner, Object a)
    Invokes the target registered under id whose captured-plus-argument count is exactly one.
  • Method Details

    • dispatch1

      Object dispatch1(int id, Object owner, Object a)
      Invokes the target registered under id whose captured-plus-argument count is exactly one.
      Parameters:
      id - the compile-time-assigned index of the target
      owner - the receiver (ignored by static targets)
      a - the single captured value or call argument
      Returns:
      the target's return value