public class EmptyConfiguration extends Object implements AppConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected Configuration[] |
EMPTY_ARRAY |
| Modifier | Constructor and Description |
|---|---|
protected |
EmptyConfiguration()
Create instance of class.
|
| Modifier and Type | Method and Description |
|---|---|
protected AppConfiguration |
add(int e,
Configuration... value) |
AppConfiguration |
add(Ordinal e,
Configuration... value)
Add elements to configuration
|
AppConfiguration |
add(Ordinal e,
Object value) |
boolean |
getBooleanValue(int i,
boolean b) |
byte[] |
getByteArrayValue(int i,
byte[] bytes) |
byte |
getByteValue(int i,
byte b) |
Configuration[] |
getChildren(int i) |
double |
getDoubleValue(int i,
double v) |
static AppConfiguration |
getInstance()
Create instance of class with system default parameters
|
int |
getIntValue(int i,
int i1) |
long |
getLongValue(int i,
long l) |
String |
getStringValue(int i,
String defValue) |
protected Object |
getValue(int key) |
boolean |
isAttributeExist(int i) |
protected void |
putValue(int key,
Object value) |
protected void |
removeValue(int... keys) |
String |
toString()
Return string representation of configuration
|
protected final Configuration[] EMPTY_ARRAY
protected EmptyConfiguration()
public static AppConfiguration getInstance()
public AppConfiguration add(Ordinal e, Configuration... value)
AppConfigurationadd in interface AppConfiguratione - elements identifiervalue - array of elementsclasspublic AppConfiguration add(Ordinal e, Object value)
add in interface AppConfiguratione - element identifiervalue - parameter valueclassprotected void putValue(int key,
Object value)
protected Object getValue(int key)
protected void removeValue(int... keys)
protected AppConfiguration add(int e, Configuration... value)
public byte getByteValue(int i,
byte b)
getByteValue in interface Configurationclasspublic int getIntValue(int i,
int i1)
getIntValue in interface Configurationclasspublic long getLongValue(int i,
long l)
getLongValue in interface Configurationclasspublic double getDoubleValue(int i,
double v)
getDoubleValue in interface Configurationclasspublic byte[] getByteArrayValue(int i,
byte[] bytes)
getByteArrayValue in interface Configurationclasspublic boolean getBooleanValue(int i,
boolean b)
getBooleanValue in interface Configurationclasspublic String getStringValue(int i, String defValue)
getStringValue in interface Configurationclasspublic boolean isAttributeExist(int i)
isAttributeExist in interface Configurationclasspublic Configuration[] getChildren(int i)
getChildren in interface ConfigurationclassCopyright © 2016. All Rights Reserved.