T - the type of property that this instance is used forpublic abstract class BaseConfiguration<T extends BaseProperty>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> |
mValues |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseConfiguration() |
|
BaseConfiguration(java.util.Map<java.lang.String,java.lang.String> values)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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.
|
java.util.Map<java.lang.String,java.lang.String> |
getMap() |
protected final java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String> mValues
protected BaseConfiguration()
public BaseConfiguration(java.util.Map<java.lang.String,java.lang.String> values)
values - the map of values to copy frompublic java.lang.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 valuepublic java.util.Map<java.lang.String,java.lang.String> getMap()
Copyright © 2021. All Rights Reserved.