ConfigPropertyConfigpublic abstract class ConfigBase extends Object implements Config
| Constructor | Description |
|---|---|
ConfigBase() |
public String getRequiredString(String key) throws NullPointerException
getRequiredString in interface ConfigNullPointerExceptionpublic String[] getStringArray(String key)
getStringArray in interface Configpublic String getFormatted(String key)
getFormatted in interface Configpublic String getRequiredFormatted(String key) throws NullPointerException
getRequiredFormatted in interface ConfigNullPointerExceptionpublic String getFormatted(String key, Map<String,Object> parameters)
getFormatted in interface Configpublic String getRequiredFormatted(String key, Map<String,Object> parameters) throws NullPointerException
getRequiredFormatted in interface ConfigNullPointerExceptionpublic String getFormatted(String key, Object... parameters)
getFormatted in interface Configpublic String getRequiredFormatted(String key, Object... parameters) throws NullPointerException
getRequiredFormatted in interface ConfigNullPointerExceptionpublic boolean getBool(String key, boolean defaultValue)
public boolean getRequiredBool(String key) throws NullPointerException, BoolFormatException
getRequiredBool in interface ConfigNullPointerExceptionBoolFormatExceptionpublic int getRequiredInt(String key) throws NullPointerException, NumberFormatException
getRequiredInt in interface ConfigNullPointerExceptionNumberFormatExceptionpublic long getLong(String key, long defaultValue)
public long getRequiredLong(String key) throws NullPointerException, NumberFormatException
getRequiredLong in interface ConfigNullPointerExceptionNumberFormatExceptionpublic float getFloat(String key, float defaultValue)
public float getRequiredFloat(String key) throws NullPointerException, NumberFormatException
getRequiredFloat in interface ConfigNullPointerExceptionNumberFormatExceptionpublic double getDouble(String key, double defaultValue)
public double getRequiredDouble(String key) throws NullPointerException, NumberFormatException
getRequiredDouble in interface ConfigNullPointerExceptionNumberFormatExceptionpublic Date getRequiredDate(String key) throws NullPointerException, DateFormatException
getRequiredDate in interface ConfigNullPointerExceptionDateFormatExceptionpublic Time getRequiredTime(String key) throws NullPointerException, DateFormatException
getRequiredTime in interface ConfigNullPointerExceptionDateFormatExceptionpublic Timestamp getDateTime(String key)
getDateTime in interface Configpublic Timestamp getRequiredDateTime(String key) throws NullPointerException, DateFormatException
getRequiredDateTime in interface ConfigNullPointerExceptionDateFormatExceptionpublic ConfigBase put(String key, String value)
public ConfigBase put(String key, boolean value)
public ConfigBase put(String key, int value)
public ConfigBase put(String key, long value)
public ConfigBase put(String key, float value)
public ConfigBase put(String key, double value)
public ConfigBase put(String key, Boolean value)
public ConfigBase put(String key, Integer value)
public ConfigBase put(String key, Long value)
public ConfigBase put(String key, Float value)
public ConfigBase put(String key, Double value)
public ConfigBase put(String key, Date value)
public ConfigBase put(String key, Time value)
public ConfigBase put(String key, Timestamp value)
@EnableDecision(OBJECT_INFO) public Map<String,String> getMap()
Copyright © 2018. All rights reserved.