Package groovyx.gpars.extra166y.Ops

Examples of groovyx.gpars.extra166y.Ops.LongPredicate


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


     * Returns a predicate evaluating to the conjunction of its contained predicates.
     */
    public static LongPredicate andPredicate
        (final LongPredicate first,
         final LongPredicate second) {
        return new LongPredicate() {
                public final boolean op(long 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 LongPredicate orPredicate
        (final LongPredicate first,
         final LongPredicate second) {
        return new LongPredicate() {
                public final boolean op(long x) {
                    return first.op(x) || second.op(x);
                }
            };
    }
View Full Code Here

TOP

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

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.