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

Method addAlias

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

Defines an additional text representation of a numeric value. This will be used by getValue(), but not getText(). @param val The numeric value @param string The text string

(int val, String str)

Source from the content-addressed store, hash-verified

141 * @param string The text string
142 */
143public void
144addAlias(int val, String str) {
145 check(val);
146 Integer value = toInteger(val);
147 str = sanitize(str);
148 strings.put(str, value);
149}
150
151/**
152 * Copies all mnemonics from one table into another.

Callers 2

DClassClass · 0.80
RcodeClass · 0.80

Calls 4

checkMethod · 0.95
toIntegerMethod · 0.95
sanitizeMethod · 0.95
putMethod · 0.45

Tested by

no test coverage detected