Class ObjectConverter


  • public final class ObjectConverter
    extends Object
    Converts objects to specific types.
    • Method Detail

      • convert

        public static <T> T convert​(Object obj,
                                    Class<T> type)
        Converts the object to the given type.
        Type Parameters:
        T - Target type
        Parameters:
        obj - object
        type - type
        Returns:
        the converted object