org.omnaest.utils.structure.element.converter
Class ElementConverterStringToInteger

java.lang.Object
  extended by org.omnaest.utils.structure.element.converter.ElementConverterStringToInteger
All Implemented Interfaces:
Serializable, ElementConverter<String,Integer>, ElementConverterTypeAware<String,Integer>, ElementConverterTypeAwareSerializable<String,Integer>

public class ElementConverterStringToInteger
extends Object
implements ElementConverterTypeAwareSerializable<String,Integer>

Author:
Omnaest
See Also:
Integer, ElementConverterTypeAware, ElementConverterNumberToString, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.omnaest.utils.structure.element.converter.ElementConverterTypeAware
ElementConverterTypeAware.SourceAndTargetType<FROM,TO>
 
Constructor Summary
ElementConverterStringToInteger()
           
 
Method Summary
 Integer convert(String element)
          Transforms a single element from one type into another.
 ElementConverterTypeAware.SourceAndTargetType<String,Integer> getSourceAndTargetType()
          Returns the ElementConverterTypeAware.SourceAndTargetType of the ElementConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementConverterStringToInteger

public ElementConverterStringToInteger()
Method Detail

convert

public Integer convert(String element)
Description copied from interface: ElementConverter
Transforms a single element from one type into another.

Specified by:
convert in interface ElementConverter<String,Integer>
Returns:
converted element

getSourceAndTargetType

public ElementConverterTypeAware.SourceAndTargetType<String,Integer> getSourceAndTargetType()
Description copied from interface: ElementConverterTypeAware
Returns the ElementConverterTypeAware.SourceAndTargetType of the ElementConverter

Specified by:
getSourceAndTargetType in interface ElementConverterTypeAware<String,Integer>
Returns:


Copyright © 2013. All Rights Reserved.