Quiver check

Argument, state and other invariant checks for your programs.

Build Status Coverage Status

API Docs are available.

Documentation

checkArgument throws ArgumentError if the specified argument check expression is false.

checkListIndex throws RangeError if the specified index is out of bounds.

checkNotNull throws ArgumentError if the specified argument is null.

checkState throws StateError if the specified state check expression is false.

Libraries

quiver.check

A simple set of pre/post-condition checkers based on the Guava Preconditions class in Java.