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