public final class IntegerConverter extends Object implements SimpleTypeConverter
Integer
objects.
It is thread-safe.
Modifier and Type | Method and Description |
---|---|
static IntegerConverter |
create()
Returns the single
IntegerConverter . |
Integer |
fromString(String value)
Converts the given
String object into an object with the simple data type this converter is
intended for. |
String |
toString(Object value)
Converts the given value to a
String object. |
public static IntegerConverter create()
IntegerConverter
.public Integer fromString(String value)
String
object into an object with the simple data type this converter is
intended for.fromString
in interface SimpleTypeConverter
value
- the String
object to convertpublic String toString(Object value)
String
object.toString
in interface SimpleTypeConverter
value
- the value to convertCopyright © 2014. All rights reserved.