MCPcopy Index your code
hub / github.com/davidgiven/luje / getInteger

Method getInteger

lib/java/lang/Integer.java:210–223  ·  view source on GitHub ↗

Returns the Integer value of the system property identified by string. Returns null if string is null or empty, if the property can not be found or if its value can not be parsed as an integer. @param string the name of the requested system propert

(String string)

Source from the content-addressed store, hash-verified

208 * {@code null}.
209 */
210 public static Integer getInteger(String string) {
211 if (string == null || string.length() == 0) {
212 return null;
213 }
214 String prop = System.getProperty(string);
215 if (prop == null) {
216 return null;
217 }
218 try {
219 return decode(prop);
220 } catch (NumberFormatException ex) {
221 return null;
222 }
223 }
224
225 /**
226 * Returns the {@code Integer} value of the system property identified by

Callers

nothing calls this directly

Calls 4

getPropertyMethod · 0.95
decodeMethod · 0.95
valueOfMethod · 0.95
lengthMethod · 0.65

Tested by

no test coverage detected