Package groovyx.gpars.extra166y.Ops

Examples of groovyx.gpars.extra166y.Ops.DoublePredicate


    /**
     * Returns a predicate evaluating to the negation of its contained predicate.
     */
    public static DoublePredicate notPredicate
        (final DoublePredicate pred) {
        return new DoublePredicate() {
                public final boolean op(double x) { return !pred.op(x); }
            };
    }
View Full Code Here


     * Returns a predicate evaluating to the conjunction of its contained predicates.
     */
    public static DoublePredicate andPredicate
        (final DoublePredicate first,
         final DoublePredicate second) {
        return new DoublePredicate() {
                public final boolean op(double x) {
                    return first.op(x) && second.op(x);
                }
            };
    }
View Full Code Here

     * Returns a predicate evaluating to the disjunction of its contained predicates.
     */
    public static DoublePredicate orPredicate
        (final DoublePredicate first,
         final DoublePredicate second) {
        return new DoublePredicate() {
                public final boolean op(double x) {
                    return first.op(x) || second.op(x);
                }
            };
    }
View Full Code Here

TOP

Related Classes of groovyx.gpars.extra166y.Ops.DoublePredicate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.