Package alpine.util

Class MapperUtil


  • public final class MapperUtil
    extends Object
    A collection of useful ObjectMapper methods.
    Since:
    1.0.0
    Author:
    Steve Springett
    • Method Detail

      • readAsObjectOf

        public static <T> T readAsObjectOf​(Class<T> clazz,
                                           String value)
        Reads in a String value and returns the object for which it represents.
        Type Parameters:
        T - The expected type to return
        Parameters:
        clazz - The expected class of the value
        value - the value to parse
        Returns:
        the mapped object