Class ConfigValueUtil


  • public final class ConfigValueUtil
    extends Object
    Utility that helps to deal with configuration values.
    • Method Detail

      • convertValue

        public static <T> T convertValue​(Object object,
                                         Class<T> type)
        Type Parameters:
        T - the generic type.
        Parameters:
        object - the Object to convert. Will not be null.
        type - the Class reflecting the requested type.
        Returns:
        the given Object converted to the given type.