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;
}
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;
}
Aggregations