Package io.deephaven.processor
Interface ObjectProcessor.Provider
- All Known Subinterfaces:
JacksonProvider,NamedObjectProcessor.Provider
- Enclosing interface:
- ObjectProcessor<T>
public static interface ObjectProcessor.Provider
An abstraction over
ObjectProcessor that provides the same logical object processor for different input
types.-
Method Summary
Modifier and TypeMethodDescriptionThe supported input types forprocessor(Type).intThe number of output types for the processors.The output types for the processors.<T> ObjectProcessor<? super T>Creates an object processor that can process theinputType.
-
Method Details
-
inputTypes
The supported input types forprocessor(Type).- Returns:
- the supported input types
-
outputTypes
The output types for the processors. Equivalent to the processors'ObjectProcessor.outputTypes().- Returns:
- the output types
-
outputSize
int outputSize()The number of output types for the processors. Equivalent to the processors'ObjectProcessor.outputSize().- Returns:
- the number of output types
-
processor
Creates an object processor that can process theinputType. This will successfully create a processor wheninputTypeis one of, or extends from one of,inputTypes(). Otherwise, anIllegalArgumentExceptionwill be thrown.- Type Parameters:
T- the input type- Parameters:
inputType- the input type- Returns:
- the object processor
-