@@ -0,0 +1,3169 @@
+package org.nishi.helper;%0A%0A/**%0A * Simple validation methods. Designed for jsoup internal use%0A * @author jsoup%0A * @since v0.0.1%0A */%0Apublic final class Validate %7B%0A    %0A    // Singleton%0A    private Validate() %7B%7D%0A%0A    /**%0A     * Validates that the object is not null%0A     * @param obj object to test%0A     */%0A    public static void notNull(Object obj) %7B%0A        if (obj == null)%0A            throw new IllegalArgumentException(%22Object must not be null%22);%0A    %7D%0A%0A    /**%0A     * Validates that the object is not null%0A     * @param obj object to test%0A     * @param msg message to output if validation fails%0A     */%0A    public static void notNull(Object obj, String msg) %7B%0A        if (obj == null)%0A            throw new IllegalArgumentException(msg);%0A    %7D%0A%0A    /**%0A     * Validates that the value is true%0A     * @param val object to test%0A     */%0A    public static void isTrue(boolean val) %7B%0A        if (!val)%0A            throw new IllegalArgumentException(%22Must be true%22);%0A    %7D%0A%0A    /**%0A     * Validates that the value is true%0A     * @param val object to test%0A     * @param msg message to output if validation fails%0A     */%0A    public static void isTrue(boolean val, String msg) %7B%0A        if (!val)%0A            throw new IllegalArgumentException(msg);%0A    %7D%0A%0A    /**%0A     * Validates that the value is false%0A     * @param val object to test%0A     */%0A    public static void isFalse(boolean val) %7B%0A        if (val)%0A            throw new IllegalArgumentException(%22Must be false%22);%0A    %7D%0A%0A    /**%0A     * Validates that the value is false%0A     * @param val object to test%0A     * @param msg message to output if validation fails%0A     */%0A    public static void isFalse(boolean val, String msg) %7B%0A        if (val)%0A            throw new IllegalArgumentException(msg);%0A    %7D%0A%0A    /**%0A     * Validates that the array contains no null elements%0A     * @param objects the array to test%0A     */%0A    public static void noNullElements(Object%5B%5D objects) %7B%0A        noNullElements(objects, %22Array must not contain any null objects%22);%0A    %7D%0A%0A    /**%0A     * Validates that the array contains no null elements%0A     * @param objects the array to test%0A     * @param msg message to output if validation fails%0A     */%0A    public static void noNullElements(Object%5B%5D objects, String msg) %7B%0A        for (Object obj : objects)%0A            if (obj == null)%0A                throw new IllegalArgumentException(msg);%0A    %7D%0A%0A    /**%0A     * Validates that the string is not empty%0A     * @param string the string to test%0A     */%0A    public static void notEmpty(String string) %7B%0A        if (string == null %7C%7C string.length() == 0)%0A            throw new IllegalArgumentException(%22String must not be empty%22);%0A    %7D%0A%0A    /**%0A     * Validates that the string is not empty%0A     * @param string the string to test%0A     * @param msg message to output if validation fails%0A     */%0A    public static void notEmpty(String string, String msg) %7B%0A        if (string == null %7C%7C string.length() == 0)%0A            throw new IllegalArgumentException(msg);%0A    %7D%0A%0A    /**%0A     Cause a failure.%0A     @param msg message to output.%0A     */%0A    public static void fail(String msg) %7B%0A        throw new IllegalArgumentException(msg);%0A    %7D%0A%7D%0A

Create Validate.java