MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / getValue

Method getValue

src/main/java/ui/controls/form/NumberInput.java:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 public String getValue() {
58 try {
59 int value=Integer.parseInt(super.getValue());
60 if (value>max) return Integer.toString(max);
61 if (value<min) return Integer.toString(min);
62 return Integer.toString(value);
63 } catch (NumberFormatException e) { /* returning initValue */ }
64 return initValue;
65 }
66}

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected