package ru.footmade.libnot;

public class NegationUtils {

    private static final Boolean TRUE = Boolean.valueOf(true);
    private static final Boolean FALSE = Boolean.valueOf(false);

    public static boolean not(boolean var) {
        Boolean varObj = Boolean.valueOf(var);
        if (varObj.equals(TRUE)) {
            return false;
        } else if (varObj.equals(FALSE)) {
            return true;
        } else {
            throw new IllegalArgumentException();
        }
    }
}

@@ -181,16 +181,219 @@
 alse);%0A%0A
+    /**%0A     * Does logical negation%0A     * @param var a value which should be negated. Must be either true or false.%0A     * @return true, if an argument is false; false, if an argument is true.%0A     */%0A
     publ

Add javadoc