Interface ConversionProcessor<T>
- Type Parameters:
T
- indicates any primitive type object
- All Known Implementing Classes:
BigDecimalConversionProcessor
,BigIntegerConversionProcessor
,BooleanConversionProcessor
,ByteArrayConversionProcessor
,ByteConversionProcessor
,CharacterConversionProcessor
,DoubleConversionProcessor
,FloatConversionProcessor
,IntegerConversionProcessor
,LongConversionProcessor
,ShortConversionProcessor
,StringConversionProcessor
public interface ConversionProcessor<T>
Conversion methods for all primitive types.
-
Method Summary
Modifier and Type Method Description java.util.function.Function<java.math.BigDecimal,T>
convertBigDecimal()
Converts anBigDecimal
type.java.util.function.Function<java.math.BigInteger,T>
convertBigInteger()
Converts anBigInteger
type.java.util.function.Function<java.lang.Boolean,T>
convertBoolean()
Converts aBoolean
type.java.util.function.Function<java.lang.Byte,T>
convertByte()
Converts aByte
type.java.util.function.Function<byte[],T>
convertByteArray()
Converts a byte[] type.java.util.function.Function<java.lang.Character,T>
convertCharacter()
Converts aCharacter
type.java.util.function.Function<java.lang.Double,T>
convertDouble()
Converts aDouble
type.java.util.function.Function<java.lang.Float,T>
convertFloat()
Converts anFloat
type.java.util.function.Function<java.lang.Integer,T>
convertInteger()
Converts anInteger
type.java.util.function.Function<java.lang.Long,T>
convertLong()
Converts aLong
type.java.util.function.Function<java.lang.Short,T>
convertShort()
Converts aShort
type.java.util.function.Function<java.lang.String,T>
convertString()
Converts aString
type.
-
Method Details
-
convertByte
java.util.function.Function<java.lang.Byte,T> convertByte()Converts aByte
type.- Returns:
- the converted value
-
convertByteArray
java.util.function.Function<byte[],T> convertByteArray()Converts a byte[] type.- Returns:
- the converted value
- Throws:
TypeConversionException
- if the number of bytes in the array is less than the minimum required to create the destination type
-
convertShort
java.util.function.Function<java.lang.Short,T> convertShort()Converts aShort
type.- Returns:
- the converted value
-
convertInteger
java.util.function.Function<java.lang.Integer,T> convertInteger()Converts anInteger
type.- Returns:
- the converted value
-
convertLong
java.util.function.Function<java.lang.Long,T> convertLong()Converts aLong
type.- Returns:
- the converted value
-
convertFloat
java.util.function.Function<java.lang.Float,T> convertFloat()Converts anFloat
type.- Returns:
- the converted value
-
convertDouble
java.util.function.Function<java.lang.Double,T> convertDouble()Converts aDouble
type.- Returns:
- the converted value
-
convertCharacter
java.util.function.Function<java.lang.Character,T> convertCharacter()Converts aCharacter
type.- Returns:
- the converted value
-
convertBoolean
java.util.function.Function<java.lang.Boolean,T> convertBoolean()Converts aBoolean
type.- Returns:
- the converted value
-
convertString
java.util.function.Function<java.lang.String,T> convertString()Converts aString
type.- Returns:
- the converted value
-
convertBigInteger
java.util.function.Function<java.math.BigInteger,T> convertBigInteger()Converts anBigInteger
type.- Returns:
- the converted value
-
convertBigDecimal
java.util.function.Function<java.math.BigDecimal,T> convertBigDecimal()Converts anBigDecimal
type.- Returns:
- the converted value
-