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 Details

    • 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
    • convert

      DSTTYPE convert(Object value)
      Convert from Object to DSTTYPE
      Parameters:
      value - Source value
      Returns:
      Converted destination type