InputType
- The type of input object to convert to text.OutputType
- The type of output textual representation.public abstract class AbstractSingleTextualConverter<InputType,OutputType extends Textual> extends AbstractDataConverter<InputType,OutputType> implements SingleTextualConverter<InputType,OutputType>
SingleTextualConverter
interface.
It implements the convert
and convertAll
methods to call the
evaluate
method.Constructor and Description |
---|
AbstractSingleTextualConverter()
Creates a new
AbstractSingleTextualConverter . |
Modifier and Type | Method and Description |
---|---|
OutputType |
convert(InputType input)
Convert an input into its single textual form.
|
java.util.List<OutputType> |
convertAll(java.lang.Iterable<? extends InputType> inputs)
Convert the given input objects into zero or more textual objects.
|
clone
public AbstractSingleTextualConverter()
AbstractSingleTextualConverter
.public OutputType convert(InputType input)
SingleTextualConverter
convert
in interface SingleTextualConverter<InputType,OutputType extends Textual>
input
- The input to convert.public java.util.List<OutputType> convertAll(java.lang.Iterable<? extends InputType> inputs)
TextualConverter
convert
methods.convertAll
in interface TextualConverter<InputType,OutputType extends Textual>
inputs
- The inputs to convert.