Class Conversions


  • public final class Conversions
    extends Object
    Defines basic type conversions
    • Method Detail

      • convert

        public static Object convert​(Object value,
                                     Class<?> target)
        Attempts to convert a value to the given type
        Parameters:
        value - the value to convert
        target - the target type
        Returns:
        the potentially converted value