Skip to content

StringMatcher

Thiago Ferreira edited this page Mar 10, 2019 · 4 revisions

How to use

require(variable).isString();

or

ensure(variable).isString();

Methods

nullValue();
notNull();
empty();
notEmpty();
startsWith(String prefix);
endsWith(String suffix);
contains(String sequence);
matches(Pattern pattern);
matches(String pattern);
length(int length);
maxLength(int maxLength);
minLength(int minLength);
email();
blank();
notBlank();

Clone this wiki locally