Represents the configuration produced by evaluating a server template.
Public Method Summary
| boolean | getBoolean(String key) Gets the value for the given key as a boolean.Convenience method for calling serverConfig.getValue(key).asBoolean(). |
| double | getDouble(String key) Gets the value for the given key as double.Convenience method for calling serverConfig.getValue(key).asDouble(). |
| long | getLong(String key) Gets the value for the given key as long.Convenience method for calling serverConfig.getValue(key).asLong(). |
| String | getString(String key) Gets the value for the given key as a string. |
| ValueSource | getValueSource(String key) Gets the ValueSource for the given key. |
Inherited Method Summary
Public Methods
public boolean getBoolean (String key)
Gets the value for the given key as a boolean.Convenience method for calling serverConfig.getValue(key).asBoolean().
Parameters
| key | The name of the parameter. |
|---|
Returns
- config value for the given key as boolean.
public double getDouble (String key)
Gets the value for the given key as double.Convenience method for calling serverConfig.getValue(key).asDouble().
Parameters
| key | The name of the parameter. |
|---|
Returns
- config value for the given key as double.
public long getLong (String key)
Gets the value for the given key as long.Convenience method for calling serverConfig.getValue(key).asLong().
Parameters
| key | The name of the parameter. |
|---|
Returns
- config value for the given key as long.
public String getString (String key)
Gets the value for the given key as a string. Convenience method for calling serverConfig.getValue(key).asString().
Parameters
| key | The name of the parameter. |
|---|
Returns
- config value for the given key as string.
public ValueSource getValueSource (String key)
Gets the ValueSource for the given key.
Parameters
| key | The name of the parameter. |
|---|
Returns
- config value source for the given key.