Package com.io7m.idstore.protocol.api

# Interface IdProtocolMessageValidatorType<T extends IdProtocolMessageType,R>

Type Parameters:
  `T` - The type of core messages
  `R` - The type of wire messages

All Known Implementing Classes:
  `IdACB1Validation`, `IdUCB1Validation`

public interface IdProtocolMessageValidatorType<T extends IdProtocolMessageType,R>
The type of validators that convert between core messages and "wire" (versioned) messages.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `convertFromWire(R message)`
  Convert a wire message to a core message.
  `R`
  `convertToWire(T message)`
  Convert a core message to a wire message.

- ## Method Details

  - ### convertToWire

    R convertToWire(T message) throws IdProtocolException
    Convert a core message to a wire message.
    Parameters:
      `message` - The core message
    Returns:
      The wire message
    Throws:
      `IdProtocolException` - On errors

  - ### convertFromWire

    T convertFromWire(R message) throws IdProtocolException
    Convert a wire message to a core message.
    Parameters:
      `message` - The wire message
    Returns:
      The core message
    Throws:
      `IdProtocolException` - On errors