Interface ComponentSerializer<I extends Component,​O extends Component,​R>

Type Parameters:
I - the input component type
O - the output component type
R - the serialized type

public interface ComponentSerializer<I extends Component,​O extends Component,​R>
A Component serializer and deserializer.
Since:
4.0.0
  • Method Summary

    Modifier and Type Method Description
    @NonNull O deserialize​(@NonNull R input)
    Deserialize a component from input of type R.
    @NonNull R serialize​(@NonNull I component)
    Serializes a component into an output of type R.
  • Method Details

    • deserialize

      @NonNull O deserialize​(@NonNull R input)
      Deserialize a component from input of type R.
      Parameters:
      input - the input
      Returns:
      the component
      Since:
      4.0.0
    • serialize

      @NonNull R serialize​(@NonNull I component)
      Serializes a component into an output of type R.
      Parameters:
      component - the component
      Returns:
      the output
      Since:
      4.0.0