V - is the generic type of the actual value to format.public interface Formatter<V>
format a given object of a
generic type. Formatter this variant concentrates on an API rather than an implementation.| Modifier and Type | Method and Description |
|---|---|
String |
format(V value)
This method formats the given
value. |
void |
format(V value,
Appendable buffer)
|
String format(V value)
value. StringBuilderbuffer = new StringBuilder();format(value, buffer); return buffer.toString();
value - is the value to format. May be null.value is null, a legal implementation
will return "null" or "".void format(V value, Appendable buffer) throws RuntimeIoException
value - is the value to format. May be null.buffer - is the Appendable to append the formatted
value to.RuntimeIoException - if append caused a
IOException.Copyright © 2001–2015 mmm-Team. All rights reserved.