MCPcopy
hub / github.com/OpenTSDB/opentsdb / getInt

Method getInt

src/utils/Config.java:339–341  ·  view source on GitHub ↗

Returns the given property as an integer @param property The property to load @return A parsed integer or an exception if the value could not be parsed @throws NumberFormatException if the property could not be parsed @throws NullPointerException if the property did not exist

(final String property)

Source from the content-addressed store, hash-verified

337 * @throws NullPointerException if the property did not exist
338 */
339 public final int getInt(final String property) {
340 return Integer.parseInt(sanitize(properties.get(property)));
341 }
342
343 /**
344 * Returns the given string trimed or null if is null

Callers 15

getIntMethod · 0.95
getIntWithSpacesMethod · 0.95
getIntNegativeMethod · 0.95
getIntNullMethod · 0.95
getIntDoesNotExistMethod · 0.95
getIntNFEMethod · 0.95
loadRpcPluginMethod · 0.95

Calls 2

sanitizeMethod · 0.95
getMethod · 0.45

Tested by 12

getIntMethod · 0.76
getIntWithSpacesMethod · 0.76
getIntNegativeMethod · 0.76
getIntNullMethod · 0.76
getIntDoesNotExistMethod · 0.76
getIntNFEMethod · 0.76
loadRpcPluginMethod · 0.76