Class BMPRequest.PayloadedResponse<T>

Type Parameters:
T - The type of the parsed payload.
All Implemented Interfaces:
Supplier<T>
Direct Known Subclasses:
BMPReadMemory.Response, EraseFlash.Response, GetBMPVersion.Response, GetFPGAResetStatus.Response, ReadADC.Response, ReadCANStatus.Response, ReadFPGARegister.Response, ReadIPAddress.Response, ReadSerialFlash.Response, ReadSerialFlashCRC.Response, ReadSerialVector.Response
Enclosing class:
BMPRequest<T extends BMPRequest.BMPResponse>

public abstract static class BMPRequest.PayloadedResponse<T> extends BMPRequest.BMPResponse implements Supplier<T>
A BMP response that contains a payload of interest.
  • Constructor Details

  • Method Details

    • get

      public final T get()
      Specified by:
      get in interface Supplier<T>
    • parse

      @ForOverride protected abstract T parse(ByteBuffer buffer)
      Parse the buffer.
      Parameters:
      buffer - The buffer to parse. Will be positioned after the message header.
      Returns:
      The parsed value.