Class ByteArrayConversionProcessor
java.lang.Object
com.hotels.beans.conversion.processor.impl.ByteArrayConversionProcessor
- All Implemented Interfaces:
ConversionProcessor<byte[]>
public final class ByteArrayConversionProcessor extends Object implements ConversionProcessor<byte[]>
Provides all method for converting any primitive type to a byte[].
-
Constructor Summary
Constructors Constructor Description ByteArrayConversionProcessor()
-
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
-
ByteArrayConversionProcessor
public ByteArrayConversionProcessor()
-
-
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
-