Package com.googlecode.totallylazy.predicates

Examples of com.googlecode.totallylazy.predicates.RemainderIs


    public static boolean isPrime(Number candidate) {
        return primes().takeWhile(where(squared, lessThanOrEqualTo(candidate))).forAll(where(remainder(candidate), is(not(zero))));
    }

    public static LogicalPredicate<Number> remainderIs(final Number divisor, final Number remainder) {
        return new RemainderIs(divisor, remainder);
    }
View Full Code Here

TOP

Related Classes of com.googlecode.totallylazy.predicates.RemainderIs

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.