Skip to content

DoubleMatcher

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

How to use

require(variable).isDouble();

or

ensure(variable).isDouble();

Methods

equalTo(int value);
greaterThan(int min);
greaterThanOrEqualTo(int min);
lessThan(int max);
lessThanOrEqualTo(int max);
between(int min, int max);
positive();
negative();
closeTo(double other, double delta);
infinite();
notInfinite();
Clone this wiki locally