public class Configuration extends Object
ConfigurationBackend.| Constructor and Description |
|---|
Configuration(ConfigurationBackend configurationBackend)
Creates a new configuration that operates on the given backend.
|
| Modifier and Type | Method and Description |
|---|---|
Value<Boolean> |
getBooleanValue(String attribute)
Returns the boolean value stored at the given attribute.
|
Value<Double> |
getDoubleValue(String attribute)
Returns the double value stored at the given attribute.
|
Value<Integer> |
getIntValue(String attribute)
Returns the integer value stored at the given attribute.
|
Value<Long> |
getLongValue(String attribute)
Returns the long value stored at the given attribute.
|
Value<String> |
getStringValue(String attribute)
Returns the string value stored at the given attribute.
|
void |
save()
Saves the configuration.
|
public Configuration(ConfigurationBackend configurationBackend)
configurationBackend - The backend backing this configurationpublic Value<Boolean> getBooleanValue(String attribute)
attribute - The name of the attributepublic Value<Double> getDoubleValue(String attribute)
attribute - The name of the attributepublic Value<Integer> getIntValue(String attribute)
attribute - The name of the attributepublic Value<Long> getLongValue(String attribute)
attribute - The name of the attributepublic Value<String> getStringValue(String attribute)
attribute - The name of the attributepublic void save()
throws ConfigurationException
ConfigurationBackend.ConfigurationException - if the configuration can not be savedConfigurationBackend.save()Copyright © 2026. All rights reserved.