MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / parseNumeric

Method parseNumeric

src/main/java/core/org/xbill/DNS/Mnemonic.java:111–121  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

109}
110
111private int
112parseNumeric(String s) {
113 try {
114 int val = Integer.parseInt(s);
115 if (val >= 0 && val <= max)
116 return val;
117 }
118 catch (NumberFormatException e) {
119 }
120 return -1;
121}
122
123/**
124 * Defines the text representation of a numeric value.

Callers 1

getValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected