Class MapperUtil

java.lang.Object
alpine.server.util.MapperUtil

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

    • 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