Package cdc.validation.checkers.defaults
Class HasNoInnerSpaces
- java.lang.Object
-
- cdc.validation.checkers.defaults.AbstractStringChecker
-
- cdc.validation.checkers.defaults.HasNoInnerSpaces
-
public final class HasNoInnerSpaces extends AbstractStringChecker
-
-
Field Summary
Fields Modifier and Type Field Description static Factory<HasNoInnerSpaces>FACTORYstatic HasNoInnerSpacesINSTANCE
-
Constructor Summary
Constructors Constructor Description HasNoInnerSpaces()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringexplain(boolean result, String arg)Explains the conditions at which a positive or negative result is obtained.booleantest(String value)-
Methods inherited from class cdc.validation.checkers.defaults.AbstractStringChecker
getValueClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cdc.validation.checkers.Checker
after, after, afterRaw, and, andRaw, cast, cast, explain, explain, negate, or, orRaw, testAndExplain, testAndExplain, testAndExplainRaw, testAndExplainRaw, testRaw, wrap
-
-
-
-
Field Detail
-
INSTANCE
public static final HasNoInnerSpaces INSTANCE
-
FACTORY
public static final Factory<HasNoInnerSpaces> FACTORY
-
-
Method Detail
-
test
public boolean test(String value)
-
explain
public String explain(boolean result, String arg)
Description copied from interface:CheckerExplains the conditions at which a positive or negative result is obtained.- Parameters:
result- The result to explain.arg- The argument name to use in explanations.- Returns:
- A string explaining the conditions leading to
result.
-
-