class Assertion {

    public static void nonNegative(long number, String name) {
        if (number < 0) {
            throw new InvalidArgumentException(name + " should be non-negative");
        }
    }

}