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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Function<BigDecimal,T>
convertBigDecimal()
Converts anBigDecimal
type.Function<BigInteger,T>
convertBigInteger()
Converts anBigInteger
type.Function<Boolean,T>
convertBoolean()
Converts aBoolean
type.Function<Byte,T>
convertByte()
Converts aByte
type.Function<byte[],T>
convertByteArray()
Converts a byte[] type.Function<Character,T>
convertCharacter()
Converts aCharacter
type.Function<Double,T>
convertDouble()
Converts aDouble
type.Function<Float,T>
convertFloat()
Converts anFloat
type.Function<Integer,T>
convertInteger()
Converts anInteger
type.Function<Long,T>
convertLong()
Converts aLong
type.Function<Short,T>
convertShort()
Converts aShort
type.Function<String,T>
convertString()
Converts aString
type.
-
-
-
Method Detail
-
convertByteArray
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
-
convertInteger
Function<Integer,T> convertInteger()
Converts anInteger
type.- Returns:
- the converted value
-
convertDouble
Function<Double,T> convertDouble()
Converts aDouble
type.- Returns:
- the converted value
-
convertCharacter
Function<Character,T> convertCharacter()
Converts aCharacter
type.- Returns:
- the converted value
-
convertBoolean
Function<Boolean,T> convertBoolean()
Converts aBoolean
type.- Returns:
- the converted value
-
convertString
Function<String,T> convertString()
Converts aString
type.- Returns:
- the converted value
-
convertBigInteger
Function<BigInteger,T> convertBigInteger()
Converts anBigInteger
type.- Returns:
- the converted value
-
convertBigDecimal
Function<BigDecimal,T> convertBigDecimal()
Converts anBigDecimal
type.- Returns:
- the converted value
-
-