Search in sources :

Example 1 with LngTest

use of suite.primitive.LngPrimitives.LngTest in project suite by stupidsing.

the class LngFunUtil method isAny.

public static boolean isAny(LngTest pred0, LngSource source) {
    LngTest pred1 = pred0.rethrow();
    long c;
    while ((c = source.source()) != EMPTYVALUE) if (pred1.test(c))
        return true;
    return false;
}
Also used : LngTest(suite.primitive.LngPrimitives.LngTest)

Example 2 with LngTest

use of suite.primitive.LngPrimitives.LngTest in project suite by stupidsing.

the class LngFunUtil method isAll.

public static boolean isAll(LngTest pred0, LngSource source) {
    LngTest pred1 = pred0.rethrow();
    long c;
    while ((c = source.source()) != EMPTYVALUE) if (!pred1.test(c))
        return false;
    return true;
}
Also used : LngTest(suite.primitive.LngPrimitives.LngTest)

Aggregations

LngTest (suite.primitive.LngPrimitives.LngTest)2