Interface LEDPattern.IndexMapper

Enclosing interface:
LEDPattern
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

A functional interface for index mapping functions.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    apply(int bufLen, int index)
    Maps the index.
  • Method Details

    • apply

      int apply(int bufLen, int index)
      Maps the index.
      Parameters:
      bufLen - Length of the buffer
      index - The index to map
      Returns:
      The mapped index