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