Class Parser

java.lang.Object
com.pixelservices.flash.utils.Parser

public class Parser extends Object
The Parser class provides methods to parse fields to specific types.
  • Constructor Details

    • Parser

      public Parser()
  • Method Details

    • parseField

      public static <T> T parseField(Object fieldValue, Class<T> clazz, Consumer<Exception> onError)
      Parse a field to a specific type.
      Type Parameters:
      T - the type to parse the field to
      Parameters:
      fieldValue - the field value to parse
      clazz - the class to parse the field to
      onError - the error handler
      Returns:
      the parsed field