private static final class FormatValidatorFactory.InvalidFormatValidator extends AbstractFormatValidator
Modifier | Constructor and Description |
---|---|
private |
InvalidFormatValidator() |
Modifier and Type | Method and Description |
---|---|
int |
argumentCount()
The number of arguments needed for the format.
|
java.lang.String |
format()
Returns the format string used for validation.
|
boolean |
isValid()
Returns
true of the format is valid, otherwise false . |
(package private) static FormatValidator |
of(java.lang.String summaryMessage) |
(package private) static FormatValidator |
of(java.lang.String summaryMessage,
java.lang.String detailMessage) |
detailMessage, setDetailMessage, setDetailMessage, setSummaryMessage, setSummaryMessage, summaryMessage
static FormatValidator of(java.lang.String summaryMessage)
static FormatValidator of(java.lang.String summaryMessage, java.lang.String detailMessage)
public java.lang.String format()
FormatValidator
public int argumentCount()
FormatValidator
public boolean isValid()
FormatValidator
true
of the format is valid, otherwise false
.true
of the format is valid, otherwise false
.