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

Method getText

src/main/java/core/org/xbill/DNS/Mnemonic.java:172–182  ·  view source on GitHub ↗

Gets the text mnemonic corresponding to a numeric value. @param val The numeric value @return The corresponding text mnemonic.

(int val)

Source from the content-addressed store, hash-verified

170 * @return The corresponding text mnemonic.
171 */
172public String
173getText(int val) {
174 check(val);
175 String str = (String) values.get(toInteger(val));
176 if (str != null)
177 return str;
178 str = Integer.toString(val);
179 if (prefix != null)
180 return prefix + str;
181 return str;
182}
183
184/**
185 * Gets the numeric value corresponding to a text mnemonic.

Callers 15

stringMethod · 0.45
stringMethod · 0.45
stringMethod · 0.45
stringMethod · 0.45
stringMethod · 0.45
stringMethod · 0.45
stringMethod · 0.45
stringMethod · 0.45
stringMethod · 0.45
TSIGstringMethod · 0.45
stringMethod · 0.45
stringMethod · 0.45

Calls 4

checkMethod · 0.95
toIntegerMethod · 0.95
getMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected