T
- the type of property that this instance is used forpublic abstract class BaseConfiguration<T extends BaseProperty> extends Object
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<String,String> |
mValues |
Modifier | Constructor and Description |
---|---|
protected |
BaseConfiguration() |
|
BaseConfiguration(Map<String,String> values)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
String |
get(T property)
Returns the value of this property, or the default value if the property is not defined.
|
boolean |
getBoolean(T property)
Return the boolean value of this property.
|
int |
getInt(T property)
Return the int value of this property , or the default value if the property is not defined.
|
Map<String,String> |
getMap() |
protected final ConcurrentHashMap<String,String> mValues
public String get(T property)
property
- the property to get the value forpublic int getInt(T property)
property
- the property to get the int valuepublic boolean getBoolean(T property)
property
- the property to get the boolean valueCopyright © 2023. All Rights Reserved.