Class IntegerConversionProcessor
java.lang.Object
com.hotels.beans.conversion.processor.impl.IntegerConversionProcessor
- All Implemented Interfaces:
ConversionProcessor<Integer>
public final class IntegerConversionProcessor extends Object implements ConversionProcessor<Integer>
Provides all method for converting any primitive type to a
Integer
.-
Constructor Summary
Constructors Constructor Description IntegerConversionProcessor()
-
Method Summary
Modifier and Type Method Description Function<BigDecimal,Integer>
convertBigDecimal()
Converts anBigDecimal
type.Function<BigInteger,Integer>
convertBigInteger()
Converts anBigInteger
type.Function<Boolean,Integer>
convertBoolean()
Converts aBoolean
type.Function<Byte,Integer>
convertByte()
Converts aByte
type.Function<byte[],Integer>
convertByteArray()
Converts a byte[] type.Function<Character,Integer>
convertCharacter()
Converts aCharacter
type.Function<Double,Integer>
convertDouble()
Converts aDouble
type.Function<Float,Integer>
convertFloat()
Converts anFloat
type.Function<Integer,Integer>
convertInteger()
Converts anInteger
type.Function<Long,Integer>
convertLong()
Converts aLong
type.Function<Short,Integer>
convertShort()
Converts aShort
type.Function<String,Integer>
convertString()
Converts aString
type.
-
Constructor Details
-
IntegerConversionProcessor
public IntegerConversionProcessor()
-
-
Method Details
-
convertByte
Converts aByte
type.- Specified by:
convertByte
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertByteArray
Converts a byte[] type.- Specified by:
convertByteArray
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertShort
Converts aShort
type.- Specified by:
convertShort
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertInteger
Converts anInteger
type.- Specified by:
convertInteger
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertLong
Converts aLong
type.- Specified by:
convertLong
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertFloat
Converts anFloat
type.- Specified by:
convertFloat
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertDouble
Converts aDouble
type.- Specified by:
convertDouble
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertCharacter
Converts aCharacter
type.- Specified by:
convertCharacter
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertBoolean
Converts aBoolean
type.- Specified by:
convertBoolean
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertString
Converts aString
type.- Specified by:
convertString
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertBigInteger
Converts anBigInteger
type.- Specified by:
convertBigInteger
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertBigDecimal
Converts anBigDecimal
type.- Specified by:
convertBigDecimal
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-