MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / parseInt

Method parseInt

Utils/src/eu/the5zig/util/Utils.java:668–677  ·  view source on GitHub ↗
(String input)

Source from the content-addressed store, hash-verified

666 }
667
668 public static int parseInt(String input) {
669 if (input == null || input.isEmpty()) {
670 return 0;
671 }
672 try {
673 return Integer.parseInt(input);
674 } catch (NumberFormatException ignored) {
675 return 0;
676 }
677 }
678
679 public enum Platform {
680 WINDOWS, MAC, LINUX, SOLARIS, UNKNOWN

Callers 15

actionPerformedMethod · 0.95
tickMethod · 0.95
actionPerformedMethod · 0.95
patchMainMenuMethod · 0.45
patchMainMenuMethod · 0.45
patchMainMenuMethod · 0.45
patchMainMenuMethod · 0.45
patchMainMenuMethod · 0.45

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected