Interface Decoder.Provider

Enclosing class:
Decoder

@API(status=STABLE, since="2.0.0") public static interface Decoder.Provider
A provider of a decoder.
Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    decoder(TypeToken<?> parsedType)
    Returns a decoder function to convert a string into a component.
  • Method Details

    • decoder

      @API(status=STABLE, since="2.0.0") Function<String,? extends Component> decoder(TypeToken<?> parsedType)
      Returns a decoder function to convert a string into a component.
      Parameters:
      parsedType - The parsed type
      Returns:
      The decoder function
      Since:
      2.0.0