Search in sources :

Example 1 with ChrTest

use of suite.primitive.ChrPrimitives.ChrTest in project suite by stupidsing.

the class ChrFunUtil method isAny.

public static boolean isAny(ChrTest pred0, ChrSource source) {
    ChrTest pred1 = pred0.rethrow();
    char c;
    while ((c = source.source()) != EMPTYVALUE) if (pred1.test(c))
        return true;
    return false;
}
Also used : ChrTest(suite.primitive.ChrPrimitives.ChrTest)

Example 2 with ChrTest

use of suite.primitive.ChrPrimitives.ChrTest in project suite by stupidsing.

the class ChrFunUtil method isAll.

public static boolean isAll(ChrTest pred0, ChrSource source) {
    ChrTest pred1 = pred0.rethrow();
    char c;
    while ((c = source.source()) != EMPTYVALUE) if (!pred1.test(c))
        return false;
    return true;
}
Also used : ChrTest(suite.primitive.ChrPrimitives.ChrTest)

Aggregations

ChrTest (suite.primitive.ChrPrimitives.ChrTest)2