MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / dofor

Method dofor

src/main/java/com/volmit/adapt/util/J.java:38–42  ·  view source on GitHub ↗
(int a, Function<Integer, Boolean> c, int ch, Consumer<Integer> d)

Source from the content-addressed store, hash-verified

36 private static boolean started = false;
37
38 public static void dofor(int a, Function<Integer, Boolean> c, int ch, Consumer<Integer> d) {
39 for (int i = a; c.apply(i); i += ch) {
40 c.apply(i);
41 }
42 }
43
44 public static boolean doif(Supplier<Boolean> c, Runnable g) {
45 if (c.get()) {

Callers 1

executeMethod · 0.95

Calls 1

applyMethod · 0.65

Tested by

no test coverage detected