Interface NamedObjectProcessor.Provider

All Superinterfaces:
ObjectProcessor.Provider
All Known Subinterfaces:
JacksonProvider
Enclosing class:
NamedObjectProcessor<T>

public static interface NamedObjectProcessor.Provider extends ObjectProcessor.Provider
  • Method Details

    • names

      List<String> names()
      The name for each output of the processors. Equivalent to the named processors' NamedObjectProcessor.names().
      Returns:
      the names
    • named

      default <T> NamedObjectProcessor<? super T> named(Type<T> inputType)
      Creates a named object processor that can process the inputType. This will successfully create a named processor when inputType is one of, or extends from one of, ObjectProcessor.Provider.inputTypes(). Otherwise, an IllegalArgumentException will be thrown. Equivalent to NamedObjectProcessor.of(processor(inputType), names()).
      Type Parameters:
      T - the input type
      Parameters:
      inputType - the input type
      Returns:
      the object processor