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