Class StringToInteger


  • public class StringToInteger
    extends Conversion<java.lang.String,​java.lang.Integer>
    A default Integrity conversion.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Detail

      • StringToInteger

        public StringToInteger()
    • Method Detail

      • convert

        public java.lang.Integer convert​(java.lang.String aSource,
                                         java.lang.Class<? extends java.lang.Integer> aTargetType,
                                         ConversionContext aConversionContext)
                                  throws ConversionFailedException
        Description copied from class: Conversion
        Performs the conversion.
        Specified by:
        convert in class Conversion<java.lang.String,​java.lang.Integer>
        Parameters:
        aSource - the source object to convert
        aTargetType - TODO
        aConversionContext - controls some conversion parameters and rules; may be null if the default ConversionContext values shall be used
        Returns:
        the converted object
        Throws:
        ConversionFailedException - in case of conversion errors