Constructor and Description |
---|
ItemTypeFormatter()
Create a new formatter.
|
ItemTypeFormatter(String nullValue)
Create a new formatter.
|
Modifier and Type | Method and Description |
---|---|
String |
format(Integer value)
Format a value by converting it to a string.
|
Integer |
parseString(String value)
Parse a string and return a value of the correct type.
|
private String nullValue
public ItemTypeFormatter()
public ItemTypeFormatter(String nullValue)
nullValue
- The string to return if a null item is
passed to format(Integer)
public String format(Integer value)
Formatter
public Integer parseString(String value)
Formatter
parseString
in interface Formatter<Integer>
value
- The string to parse