T - public abstract class StringConverterWithFormat<T> extends StringConverter<T>
SpreadsheetCellType in order to use
a specific format.SpreadsheetCell, we need a
converter which provide a runtime method toStringFormat(Object, String).toStringFormat(Object, String) and let the other converter handle the other methods.SpreadsheetCellType| Modifier and Type | Field and Description |
|---|---|
protected StringConverter<T> |
myConverter |
| Constructor and Description |
|---|
StringConverterWithFormat()
Default constructor.
|
StringConverterWithFormat(StringConverter<T> specificStringConverter)
This constructor allow to use another StringConverter.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toStringFormat(T value,
String format)
Converts the object provided into its string form with the specified format.
|
fromString, toStringprotected StringConverter<T> myConverter
public StringConverterWithFormat()
public StringConverterWithFormat(StringConverter<T> specificStringConverter)
specificStringConverter -