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