Class ParseResult

java.lang.Object
com.protegrity.ap.java.ParseResult

public class ParseResult extends Object
Represents the result of a parsing operation.

This class encapsulates the success status and the converted array result from data type conversion operations.

Since:
1.0.0
  • Constructor Details

    • ParseResult

      public ParseResult(boolean success, Object convertedArray)
      Constructs a new ParseResult.
      Parameters:
      success - whether the parsing operation succeeded
      convertedArray - the converted array result, or null if parsing failed
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Returns whether the parsing operation was successful.
      Returns:
      true if parsing succeeded, false otherwise
    • getConvertedArray

      public Object getConvertedArray()
      Returns the converted array result.
      Returns:
      the converted array, or null if parsing failed