Interface GpioControl.GpioServiceAction<T>

Type Parameters:
T - the action result type
Enclosing class:
GpioControl
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 GpioControl.GpioServiceAction<T>
API for interacting with the GpioService.
  • Method Summary

    Modifier and Type
    Method
    Description
    Perform the action.
  • Method Details

    • perform

      T perform(GpioService gpio) throws IOException
      Perform the action.
      Parameters:
      gpio - the GPIO service
      Returns:
      the result
      Throws:
      IOException - if any communication error occurs