Search in sources :

Example 1 with FltTest

use of suite.primitive.FltPrimitives.FltTest in project suite by stupidsing.

the class FltFunUtil method isAny.

public static boolean isAny(FltTest pred0, FltSource source) {
    FltTest pred1 = pred0.rethrow();
    float c;
    while ((c = source.source()) != EMPTYVALUE) if (pred1.test(c))
        return true;
    return false;
}
Also used : FltTest(suite.primitive.FltPrimitives.FltTest)

Example 2 with FltTest

use of suite.primitive.FltPrimitives.FltTest in project suite by stupidsing.

the class FltFunUtil method isAll.

public static boolean isAll(FltTest pred0, FltSource source) {
    FltTest pred1 = pred0.rethrow();
    float c;
    while ((c = source.source()) != EMPTYVALUE) if (!pred1.test(c))
        return false;
    return true;
}
Also used : FltTest(suite.primitive.FltPrimitives.FltTest)

Aggregations

FltTest (suite.primitive.FltPrimitives.FltTest)2