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

Method getFloat

src/Config.java:170–172  ·  view source on GitHub ↗

Returns the given property as a float @param property The property to fetch @return A parsed float 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

168 * @throws NullPointerException if the property did not exist
169 */
170 public final float getFloat(final String property) {
171 return Float.parseFloat(properties.get(property));
172 }
173
174 /**
175 * Returns the given property as a double

Callers 5

getFloatMethod · 0.95
getFloatNegativeMethod · 0.95
getFloatNullMethod · 0.95
getFloatDoesNotExistMethod · 0.95
getFloatNFEMethod · 0.95

Calls 1

getMethod · 0.45

Tested by 5

getFloatMethod · 0.76
getFloatNegativeMethod · 0.76
getFloatNullMethod · 0.76
getFloatDoesNotExistMethod · 0.76
getFloatNFEMethod · 0.76