public abstract class ConfigBase extends Object implements Config, Map<String,String>, Serializable
| Constructor and Description |
|---|
ConfigBase(Map<String,String> newMap) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getRequiredString(String key) throws NullPointerException
getRequiredString in interface ConfigNullPointerExceptionpublic List<String> getStringList(String key)
getStringList 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 boolean containsKey(Object key)
containsKey in interface Map<String,String>public boolean containsValue(Object value)
containsValue in interface Map<String,String>Copyright © 2017. All rights reserved.