Package com.helger.commons.traits
Interface IPrimitiveConverterTo<DSTTYPE>
-
- Type Parameters:
DSTTYPE- The destination type to convert to
public interface IPrimitiveConverterTo<DSTTYPE>A generic dummy interface to convert any primitive type to a certain object type.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DSTTYPEconvert(boolean value)Convert from boolean to DSTTYPEDSTTYPEconvert(byte value)Convert from byte to DSTTYPEDSTTYPEconvert(char value)Convert from char to DSTTYPEDSTTYPEconvert(double value)Convert from double to DSTTYPEDSTTYPEconvert(float value)Convert from float to DSTTYPEDSTTYPEconvert(int value)Convert from int to DSTTYPEDSTTYPEconvert(long value)Convert from long to DSTTYPEDSTTYPEconvert(short value)Convert from short to DSTTYPEDSTTYPEconvert(Object value)Convert from Object to DSTTYPE
-
-
-
Method Detail
-
convert
DSTTYPE convert(boolean value)
Convert from boolean to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
DSTTYPE convert(byte value)
Convert from byte to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
DSTTYPE convert(char value)
Convert from char to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
DSTTYPE convert(double value)
Convert from double to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
DSTTYPE convert(float value)
Convert from float to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
DSTTYPE convert(int value)
Convert from int to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
DSTTYPE convert(long value)
Convert from long to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
DSTTYPE convert(short value)
Convert from short to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
-