InputType - The type of input that can be converted to a textual form.OutputType - The type of textual output of the converter. Must implement the
Textual interface.public class SingleToMultiTextualConverterAdapter<InputType,OutputType extends Textual> extends AbstractMultiTextualConverter<InputType,OutputType>
SingleTextualConverter to work within the interface of an
MultiTextualConverter.| Modifier and Type | Field and Description |
|---|---|
protected SingleTextualConverter<? super InputType,? extends OutputType> |
converter
The single text converter being wrapped.
|
| Constructor and Description |
|---|
SingleToMultiTextualConverterAdapter()
Creates a new
SingleToMultiTextualConverterAdapter with no
internal converter. |
SingleToMultiTextualConverterAdapter(SingleTextualConverter<? super InputType,? extends OutputType> converter)
Creates a new
SingleToMultiTextualConverterAdapter with the given
internal converter. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<OutputType> |
evaluate(InputType input)
Evaluates the function on the given input and returns the output.
|
SingleTextualConverter<? super InputType,? extends OutputType> |
getConverter()
Gets the internal single textual converter being wrapped.
|
void |
setConverter(SingleTextualConverter<? super InputType,? extends OutputType> converter)
Sets the internal single textual converter being wrapped.
|
convert, convertAllcloneprotected SingleTextualConverter<? super InputType,? extends OutputType extends Textual> converter
public SingleToMultiTextualConverterAdapter()
SingleToMultiTextualConverterAdapter with no
internal converter.public SingleToMultiTextualConverterAdapter(SingleTextualConverter<? super InputType,? extends OutputType> converter)
SingleToMultiTextualConverterAdapter with the given
internal converter.converter - The internal converter.public java.lang.Iterable<OutputType> evaluate(InputType input)
Evaluatorinput - The input to evaluate.public SingleTextualConverter<? super InputType,? extends OutputType> getConverter()
public void setConverter(SingleTextualConverter<? super InputType,? extends OutputType> converter)
converter - The internal single textual converter.