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.
|
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 valueCopyright © 2023. All Rights Reserved.