public class StringToIntegerConverter extends AbstractReverseCachedDataConverter<java.lang.String,java.lang.Integer,ObjectToStringConverter>
String
to a Integer
using the
Integer.valueOf
method.reverse
Constructor and Description |
---|
StringToIntegerConverter()
Creates a new
StringToIntegerConverter . |
Modifier and Type | Method and Description |
---|---|
protected ObjectToStringConverter |
createReverse()
Creates a new reverse converter.
|
java.lang.Integer |
evaluate(java.lang.String input)
Converts the given
String to a Integer . |
reverse
clone
public StringToIntegerConverter()
StringToIntegerConverter
.public java.lang.Integer evaluate(java.lang.String input)
String
to a Integer
.input
- The String to convert.protected ObjectToStringConverter createReverse()
AbstractReverseCachedDataConverter
createReverse
in class AbstractReverseCachedDataConverter<java.lang.String,java.lang.Integer,ObjectToStringConverter>