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 aInteger
.
-
-
Constructor Summary
Constructors Constructor Description IntegerConversionProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
convertByte
public Function<Byte,Integer> convertByte()
Converts aByte
type.- Specified by:
convertByte
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertByteArray
public Function<byte[],Integer> convertByteArray()
Converts a byte[] type.- Specified by:
convertByteArray
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertShort
public Function<Short,Integer> convertShort()
Converts aShort
type.- Specified by:
convertShort
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertInteger
public Function<Integer,Integer> convertInteger()
Converts anInteger
type.- Specified by:
convertInteger
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertLong
public Function<Long,Integer> convertLong()
Converts aLong
type.- Specified by:
convertLong
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertFloat
public Function<Float,Integer> convertFloat()
Converts anFloat
type.- Specified by:
convertFloat
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertDouble
public Function<Double,Integer> convertDouble()
Converts aDouble
type.- Specified by:
convertDouble
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertCharacter
public Function<Character,Integer> convertCharacter()
Converts aCharacter
type.- Specified by:
convertCharacter
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertBoolean
public Function<Boolean,Integer> convertBoolean()
Converts aBoolean
type.- Specified by:
convertBoolean
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertString
public Function<String,Integer> convertString()
Converts aString
type.- Specified by:
convertString
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertBigInteger
public Function<BigInteger,Integer> convertBigInteger()
Converts anBigInteger
type.- Specified by:
convertBigInteger
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
convertBigDecimal
public Function<BigDecimal,Integer> convertBigDecimal()
Converts anBigDecimal
type.- Specified by:
convertBigDecimal
in interfaceConversionProcessor<Integer>
- Returns:
- the converted value
-
-