Interface Address<T>

All Known Subinterfaces:
DoubleAddress
All Known Implementing Classes:
MIDIAddress

public interface Address<T>
A channel through which data can be sent and recieved to and from ButtonBox hardware.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets feedback from the address.
    Gets the changes to the feedback from the address since the last call to this method.
    void
    send(T data)
    Sends data to the address.
  • Method Details

    • send

      void send(T data)
      Sends data to the address.
      Parameters:
      data - Object to send.
    • getFeedback

      Optional<T> getFeedback()
      Gets feedback from the address.
      Returns:
      Objects containing control feedback. Empty if no feedback has been recieved.
    • getFeedbackQueue

      List<T> getFeedbackQueue()
      Gets the changes to the feedback from the address since the last call to this method.
      Returns:
      Objects containing control feedback changes, ordered from least to most recent. Empty if no feedback has been recieved.