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

Method intValue

src/main/java/core/org/xbill/DNS/Options.java:108–121  ·  view source on GitHub ↗

Returns the value of an option as an integer, or -1 if not defined.

(String option)

Source from the content-addressed store, hash-verified

106 * Returns the value of an option as an integer, or -1 if not defined.
107 */
108public static int
109intValue(String option) {
110 String s = value(option);
111 if (s != null) {
112 try {
113 int val = Integer.parseInt(s);
114 if (val > 0)
115 return (val);
116 }
117 catch (NumberFormatException e) {
118 }
119 }
120 return (-1);
121}
122
123}

Callers 12

signMessageMethod · 0.95
generateMethod · 0.95
applyStreamMethod · 0.95
findWinMethod · 0.80
toArrayMethod · 0.80
toStringMethod · 0.80
mapToWireMethod · 0.80
toWireMethod · 0.80
findWinMethod · 0.80
getValueMethod · 0.80
rrFromWireMethod · 0.80
rdataFromStringMethod · 0.80

Calls 1

valueMethod · 0.95

Tested by

no test coverage detected