public class ConfigProperties extends Object
| 构造器和说明 |
|---|
ConfigProperties() |
ConfigProperties(Collection<PropertyConfig> configProperties) |
ConfigProperties(PropertyConfig... configProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
getBooleanValue(String name,
boolean defaultValue)
Returns the boolean value of specified property.
|
int |
getIntValue(String name)
Returns the integer value of specified property.
|
int |
getIntValue(String name,
int defaultValue)
Returns the integer value of specified property.
|
String |
getStringValue(String name)
Returns the string value of specified property.
|
String |
getStringValue(String name,
String defaultValue)
Returns the string value of specified property.
|
public ConfigProperties()
public ConfigProperties(PropertyConfig... configProperties)
public ConfigProperties(Collection<PropertyConfig> configProperties)
public String getStringValue(String name, String defaultValue)
name - property name.defaultValue - default value.defaultValue if the property is missing.public String getStringValue(String name)
name - property name.AuthConfigException - if the property is missing.public int getIntValue(String name, int defaultValue)
name - property name.defaultValue - default value.defaultValue if the property is missing.public int getIntValue(String name)
name - property name.AuthConfigException - if the property is missing.public boolean getBooleanValue(String name, boolean defaultValue)
name - property name.defaultValue - default value.defaultValue if the property is missing.Copyright © 2022. All rights reserved.