MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / getInt

Method getInt

src/Config.java:137–139  ·  view source on GitHub ↗

Returns the given property as an integer @param property The property to fetch @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

135 * @throws NullPointerException if the property did not exist
136 */
137 public final int getInt(final String property) {
138 return Integer.parseInt(properties.get(property));
139 }
140
141 /**
142 * Returns the given property as a short

Callers 5

getIntMethod · 0.95
getIntNegativeMethod · 0.95
getIntNullMethod · 0.95
getIntDoesNotExistMethod · 0.95
getIntNFEMethod · 0.95

Calls 1

getMethod · 0.45

Tested by 5

getIntMethod · 0.76
getIntNegativeMethod · 0.76
getIntNullMethod · 0.76
getIntDoesNotExistMethod · 0.76
getIntNFEMethod · 0.76