T
- the types of propertiespublic abstract class AbstractConfigurationProperties<T extends ConfigurationPropertyConstant> extends Object
Constructor and Description |
---|
AbstractConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getAssertProperty(T key)
Get the property, throw a runtime exception if the key does not exist.
|
abstract String |
getProperty(T key)
Returns the property value for the key as String.
|
boolean |
getProperty(T key,
boolean fallback)
Returns the property for the key as boolean.
|
int |
getProperty(T key,
int fallback)
Returns the property for the key as integer.
|
long |
getProperty(T key,
long fallback)
Returns the property for the key as long.
|
String |
getProperty(T key,
String fallback)
Returns the property for the key as string.
|
public String getAssertProperty(T key)
key
- The key to getpublic abstract String getProperty(T key)
key
- the keypublic boolean getProperty(T key, boolean fallback)
key
- the keyfallback
- the fallback to return if there is no property for the key or the property cannot
be converted to boolean.public int getProperty(T key, int fallback)
key
- the keyfallback
- the fallback to return if there is no property for the keypublic long getProperty(T key, long fallback)
key
- the keyfallback
- the fallback to return if there is no property for the keyCopyright © 2019 Communote team. All rights reserved.