MCPcopy Create free account
hub / github.com/boxbeam/RedLib / forEach

Method forEach

src/redempt/redlib/sql/SQLHelper.java:554–563  ·  view source on GitHub ↗

Performs an operation on every row in these Results, passing itself each time it iterates to a new row @param lambda The callback to be run on every row in these Results

(Consumer<Results> lambda)

Source from the content-addressed store, hash-verified

552 * @param lambda The callback to be run on every row in these Results
553 */
554 public void forEach(Consumer<Results> lambda) {
555 if (isEmpty()) {
556 return;
557 }
558 lambda.accept(this);
559 while (next()) {
560 lambda.accept(this);
561 }
562 close();
563 }
564
565 /**
566 * Gets an Object in the given column in the current row

Callers 15

loadAllMethod · 0.95
canApplyMethod · 0.80
registerMethod · 0.80
getEnchantsMethod · 0.80
combineMethod · 0.80
registerMethod · 0.80
registerMethod · 0.80
stringifyMethod · 0.80
flushMethod · 0.80
flushMatchingCachesMethod · 0.80

Calls 3

isEmptyMethod · 0.95
nextMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected