MCPcopy Create free account
hub / github.com/Frontrooms/3.0-GC / Range

Method Range

src/main/java/emu/grasscutter/utils/SparseSet.java:17–23  ·  view source on GitHub ↗
(int min, int max)

Source from the content-addressed store, hash-verified

15 private final int min, max;
16
17 public Range(int min, int max) {
18 if (min > max) {
19 throw new IllegalArgumentException("Range passed minimum higher than maximum - " + Integer.toString(min) + " > " + Integer.toString(max));
20 }
21 this.min = min;
22 this.max = max;
23 }
24
25 public boolean check(int value) {
26 return value >= this.min && value <= this.max;

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected