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

Method getShort

src/Config.java:148–150  ·  view source on GitHub ↗

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

146 * @throws NullPointerException if the property did not exist
147 */
148 public final short getShort(final String property) {
149 return Short.parseShort(properties.get(property));
150 }
151
152 /**
153 * Returns the given property as a long

Callers 5

getShortMethod · 0.95
getShortNegativeMethod · 0.95
getShortNullMethod · 0.95
getShortDoesNotExistMethod · 0.95
getShortNFEMethod · 0.95

Calls 1

getMethod · 0.45

Tested by 5

getShortMethod · 0.76
getShortNegativeMethod · 0.76
getShortNullMethod · 0.76
getShortDoesNotExistMethod · 0.76
getShortNFEMethod · 0.76