Package cdc.validation.checkers.defaults
Class HasNoOuterWhiteSpaces
java.lang.Object
cdc.validation.checkers.defaults.AbstractStringChecker
cdc.validation.checkers.defaults.HasNoOuterWhiteSpaces
Specialization of
AbstractStringChecker that checks that a string does not contain
any outer (leading or trailing) white space character.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Factory<HasNoOuterWhiteSpaces>static final HasNoOuterWhiteSpacesFields inherited from interface cdc.validation.checkers.Checker
DEFAULT_ARG_NAME -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class cdc.validation.checkers.defaults.AbstractStringChecker
firstCodePoint, getValueClass, lastCodePointMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 Details
-
INSTANCE
-
FACTORY
-
-
Constructor Details
-
HasNoOuterWhiteSpaces
public HasNoOuterWhiteSpaces()
-
-
Method Details
-
test
-
explain
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.
-