validate

public boolean validate(int allowedFlags, boolean allowPrecision)

Validates these options according to the allowed criteria and checks for inconsistencies in flag values.

Note that there is not requirement for options used internally in custom message parsers to be validated, but any format options passed through the ParameterVisitor interface must be valid with respect to the associated FormatChar instance.

Return

true if these options are valid given the specified constraints.

Parameters

allowedFlags

a bit mask specifying a subset of the printf flags that are allowed for these options.

allowPrecision

true if these options are allowed to have a precision value specified.