Converts an int into a possibly cached Integer.
(int val)
| 81 | * Converts an int into a possibly cached Integer. |
| 82 | */ |
| 83 | public static Integer |
| 84 | toInteger(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] |
no outgoing calls
no test coverage detected