| Package | Description |
|---|---|
| net.csdn.common.settings |
| Modifier and Type | Class and Description |
|---|---|
class |
NoClassSettingsException
BlogInfo: william
Date: 11-9-1
Time: 下午4:37
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
ImmutableSettings.getAsArray(String settingPrefix) |
String[] |
Settings.getAsArray(String settingPrefix)
The values associated with a setting prefix as an array.
|
String[] |
ImmutableSettings.getAsArray(String settingPrefix,
String[] defaultArray) |
String[] |
Settings.getAsArray(String settingPrefix,
String[] defaultArray)
The values associated with a setting prefix as an array.
|
Boolean |
Settings.getAsBoolean(String setting,
Boolean defaultValue)
Returns the setting value (as boolean) associated with the setting key.
|
ByteSizeValue |
ImmutableSettings.getAsBytesSize(String setting,
ByteSizeValue defaultValue) |
ByteSizeValue |
Settings.getAsBytesSize(String setting,
ByteSizeValue defaultValue)
Returns the setting value (as size) associated with the setting key.
|
Double |
Settings.getAsDouble(String setting,
Double defaultValue)
Returns the setting value (as double) associated with the setting key.
|
Float |
Settings.getAsFloat(String setting,
Float defaultValue)
Returns the setting value (as float) associated with the setting key.
|
Integer |
Settings.getAsInt(String setting,
Integer defaultValue)
Returns the setting value (as int) associated with the setting key.
|
Long |
Settings.getAsLong(String setting,
Long defaultValue)
Returns the setting value (as long) associated with the setting key.
|
SizeValue |
ImmutableSettings.getAsSize(String setting,
SizeValue defaultValue) |
SizeValue |
Settings.getAsSize(String setting,
SizeValue defaultValue)
Returns the setting value (as size) associated with the setting key.
|
TimeValue |
Settings.getAsTime(String setting,
TimeValue defaultValue)
Returns the setting value (as time) associated with the setting key.
|
Map<String,Settings> |
ImmutableSettings.getGroups(String settingPrefix) |
Map<String,Settings> |
Settings.getGroups(String settingPrefix)
Returns group settings for the given setting prefix.
|
ImmutableSettings.Builder |
ImmutableSettings.Builder.loadFromClasspath(String resourceName)
Loads settings from classpath that represents them using the
|
ImmutableSettings.Builder |
ImmutableSettings.Builder.loadFromStream(String resourceName,
InputStream is)
Loads settings from a stream that represents them using the
|
ImmutableSettings.Builder |
ImmutableSettings.Builder.loadFromUrl(URL url)
Loads settings from a url that represents them using the
|
ImmutableSettings.Builder |
ImmutableSettings.Builder.put(String settingPrefix,
String groupName,
String[] settings,
String[] values)
Sets the setting group.
|
Copyright © 2022. All rights reserved.