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

Method hasProperty

src/Config.java:251–258  ·  view source on GitHub ↗

Determines if the given property is in the map @param property The property to search for @return True if the property exists and has a value, not an empty string

(final String property)

Source from the content-addressed store, hash-verified

249 * @return True if the property exists and has a value, not an empty string
250 */
251 public final boolean hasProperty(final String property) {
252 final String val = properties.get(property);
253 if (val == null)
254 return false;
255 if (val.isEmpty())
256 return false;
257 return true;
258 }
259
260 /**
261 * Returns a simple string with the configured properties for debugging. Note

Callers 12

hasPropertyMethod · 0.95
hasPropertyNullMethod · 0.95
hasPropertyNotMethod · 0.95
channelConnectedMethod · 0.45
HBaseClientMethod · 0.45
defaultChannelFactoryMethod · 0.45
newClientMethod · 0.45
parseQOPMethod · 0.45
refreshTicketCacheMethod · 0.45

Calls 2

isEmptyMethod · 0.80
getMethod · 0.45

Tested by 3

hasPropertyMethod · 0.76
hasPropertyNullMethod · 0.76
hasPropertyNotMethod · 0.76