public class FormatterChain extends Object implements Formatter.Chain
Constructor and Description |
---|
FormatterChain(List<Formatter> formatter)
Creates a new
FormatterChain . |
Modifier and Type | Method and Description |
---|---|
Object |
format(Object value)
Ask the next formatter to process the value.
|
public FormatterChain(List<Formatter> formatter)
FormatterChain
.formatter
- List of available formatters.public Object format(Object value)
Formatter.Chain
format
in interface Formatter.Chain
value
- A value to format, not null.Copyright © 2021. All rights reserved.