Search in sources :

Example 1 with DblTest

use of suite.primitive.DblPrimitives.DblTest in project suite by stupidsing.

the class DblFunUtil method isAll.

public static boolean isAll(DblTest pred0, DblSource source) {
    DblTest pred1 = pred0.rethrow();
    double c;
    while ((c = source.source()) != EMPTYVALUE) if (!pred1.test(c))
        return false;
    return true;
}
Also used : DblTest(suite.primitive.DblPrimitives.DblTest)

Example 2 with DblTest

use of suite.primitive.DblPrimitives.DblTest in project suite by stupidsing.

the class DblFunUtil method isAny.

public static boolean isAny(DblTest pred0, DblSource source) {
    DblTest pred1 = pred0.rethrow();
    double c;
    while ((c = source.source()) != EMPTYVALUE) if (pred1.test(c))
        return true;
    return false;
}
Also used : DblTest(suite.primitive.DblPrimitives.DblTest)

Aggregations

DblTest (suite.primitive.DblPrimitives.DblTest)2