net.sf.jsefa.common.converter
Class IntegerConverter

java.lang.Object
  extended by net.sf.jsefa.common.converter.IntegerConverter
All Implemented Interfaces:
SimpleTypeConverter

public final class IntegerConverter
extends Object
implements SimpleTypeConverter

Converter for Integer objects.

It is thread-safe.

Author:
Norman Lahme-Huetig

Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static IntegerConverter create()
Returns the single IntegerConverter.

Returns:
the single integer converter.

fromString

public Integer fromString(String value)
Converts the given String object into an object with the simple data type this converter is intended for.

Specified by:
fromString in interface SimpleTypeConverter
Parameters:
value - the String object to convert
Returns:
the converted value

toString

public String toString(Object value)
Converts the given value to a String object.

Specified by:
toString in interface SimpleTypeConverter
Parameters:
value - the value to convert
Returns:
the converted value


Copyright © 2014. All rights reserved.