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