@Public public class MetricConfig extends Properties
defaults
Constructor and Description |
---|
MetricConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(String key,
boolean defaultValue)
Searches for the property with the specified key in this property list.
|
double |
getDouble(String key,
double defaultValue)
Searches for the property with the specified key in this property list.
|
float |
getFloat(String key,
float defaultValue)
Searches for the property with the specified key in this property list.
|
int |
getInteger(String key,
int defaultValue)
Searches for the property with the specified key in this property list.
|
long |
getLong(String key,
long defaultValue)
Searches for the property with the specified key in this property list.
|
String |
getString(String key,
String defaultValue) |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public int getInteger(String key, int defaultValue)
key
- the hashtable key.defaultValue
- a default value.public long getLong(String key, long defaultValue)
key
- the hashtable key.defaultValue
- a default value.public float getFloat(String key, float defaultValue)
key
- the hashtable key.defaultValue
- a default value.public double getDouble(String key, double defaultValue)
key
- the hashtable key.defaultValue
- a default value.public boolean getBoolean(String key, boolean defaultValue)
key
- the hashtable key.defaultValue
- a default value.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.