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

Method toInteger

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

Converts an int into a possibly cached Integer.

(int val)

Source from the content-addressed store, hash-verified

81 * Converts an int into a possibly cached Integer.
82 */
83public static Integer
84toInteger(int val) {
85 if (val >= 0 && val < cachedInts.length)
86 return (cachedInts[val]);
87 return val;
88}
89
90/**
91 * Checks that a numeric value is within the range [0..max]

Callers 9

TypeBitmapMethod · 0.95
containsMethod · 0.95
addMethod · 0.95
addAliasMethod · 0.95
getTextMethod · 0.95
addMethod · 0.95
getDefaultCacheMethod · 0.95
setDefaultCacheMethod · 0.95
getProtoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected