Interface QValueConverterDirectoryType

All Known Implementing Classes:
QValueConverterDirectory

public interface QValueConverterDirectoryType
A directory of value converters.
  • Method Details

    • converterFor

      <T> Optional<QValueConverterType<T>> converterFor(Class<T> type)
      Type Parameters:
      T - The type
      Parameters:
      type - The type
      Returns:
      A converter for the given class, if one exists
    • converters

      Returns:
      The set of converters in the directory
    • with

      <T> QValueConverterDirectoryType with(Class<T> clazz, QValueConverterType<T> converter)
      Extend this value converter directory with the given converter, returning a new directory.
      Type Parameters:
      T - The type
      Parameters:
      clazz - The class
      converter - The converter
      Returns:
      A new directory with the given converter
    • with

      default <T> QValueConverterDirectoryType with(QValueConverterType<T> converter)
      Extend this value converter directory with the given converter, returning a new directory.
      Type Parameters:
      T - The type
      Parameters:
      converter - The converter
      Returns:
      A new directory with the given converter