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 aByte
.
-
-
Constructor Summary
Constructors Constructor Description ByteConversionProcessor()
-
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
-
-