Class ByteArrayConversionProcessor
java.lang.Object
com.expediagroup.beans.conversion.processor.impl.ByteArrayConversionProcessor
- All Implemented Interfaces:
ConversionProcessor<byte[]>
public final class ByteArrayConversionProcessor extends java.lang.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 java.util.function.Function<java.math.BigDecimal,byte[]>
convertBigDecimal()
Converts anBigDecimal
type.java.util.function.Function<java.math.BigInteger,byte[]>
convertBigInteger()
Converts anBigInteger
type.java.util.function.Function<java.lang.Boolean,byte[]>
convertBoolean()
Converts aBoolean
type.java.util.function.Function<java.lang.Byte,byte[]>
convertByte()
Converts aByte
type.java.util.function.Function<byte[],byte[]>
convertByteArray()
Converts a byte[] type.java.util.function.Function<java.lang.Character,byte[]>
convertCharacter()
Converts aCharacter
type.java.util.function.Function<java.lang.Double,byte[]>
convertDouble()
Converts aDouble
type.java.util.function.Function<java.lang.Float,byte[]>
convertFloat()
Converts anFloat
type.java.util.function.Function<java.lang.Integer,byte[]>
convertInteger()
Converts anInteger
type.java.util.function.Function<java.lang.Long,byte[]>
convertLong()
Converts aLong
type.java.util.function.Function<java.lang.Short,byte[]>
convertShort()
Converts aShort
type.java.util.function.Function<java.lang.String,byte[]>
convertString()
Converts aString
type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ByteArrayConversionProcessor
public ByteArrayConversionProcessor()
-
-
Method Details
-
convertByte
public java.util.function.Function<java.lang.Byte,byte[]> convertByte()Converts aByte
type.- Specified by:
convertByte
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertByteArray
public java.util.function.Function<byte[],byte[]> convertByteArray()Converts a byte[] type.- Specified by:
convertByteArray
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertShort
public java.util.function.Function<java.lang.Short,byte[]> convertShort()Converts aShort
type.- Specified by:
convertShort
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertInteger
public java.util.function.Function<java.lang.Integer,byte[]> convertInteger()Converts anInteger
type.- Specified by:
convertInteger
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertLong
public java.util.function.Function<java.lang.Long,byte[]> convertLong()Converts aLong
type.- Specified by:
convertLong
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertFloat
public java.util.function.Function<java.lang.Float,byte[]> convertFloat()Converts anFloat
type.- Specified by:
convertFloat
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertDouble
public java.util.function.Function<java.lang.Double,byte[]> convertDouble()Converts aDouble
type.- Specified by:
convertDouble
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertCharacter
public java.util.function.Function<java.lang.Character,byte[]> convertCharacter()Converts aCharacter
type.- Specified by:
convertCharacter
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertBoolean
public java.util.function.Function<java.lang.Boolean,byte[]> convertBoolean()Converts aBoolean
type.- Specified by:
convertBoolean
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertString
public java.util.function.Function<java.lang.String,byte[]> convertString()Converts aString
type.- Specified by:
convertString
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertBigInteger
public java.util.function.Function<java.math.BigInteger,byte[]> convertBigInteger()Converts anBigInteger
type.- Specified by:
convertBigInteger
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-
convertBigDecimal
public java.util.function.Function<java.math.BigDecimal,byte[]> convertBigDecimal()Converts anBigDecimal
type.- Specified by:
convertBigDecimal
in interfaceConversionProcessor<byte[]>
- Returns:
- the converted value
-