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
Modifier and TypeMethodDescriptionconvert(boolean value) Convert from boolean to DSTTYPEconvert(byte value) Convert from byte to DSTTYPEconvert(char value) Convert from char to DSTTYPEconvert(double value) Convert from double to DSTTYPEconvert(float value) Convert from float to DSTTYPEconvert(int value) Convert from int to DSTTYPEconvert(long value) Convert from long to DSTTYPEconvert(short value) Convert from short to DSTTYPEConvert from Object to DSTTYPE
-
Method Details
-
convert
Convert from boolean to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
Convert from byte to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
Convert from char to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
Convert from double to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
Convert from float to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
Convert from int to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
Convert from long to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
Convert from short to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-
convert
Convert from Object to DSTTYPE- Parameters:
value- Source value- Returns:
- Converted destination type
-