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