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