public class ConfigMap extends MapWrapper<String,String> implements Config
map| Constructor and Description |
|---|
ConfigMap() |
ConfigMap(Map<String,String> newMap) |
clear, containsKey, containsValue, entrySet, isEmpty, keySet, remove, size, valuesclone, 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 IllegalStateException
getRequiredString in interface ConfigIllegalStateExceptionpublic String[] getStringArray(String key)
getStringArray in interface Configpublic String getFormatted(String key)
getFormatted in interface Configpublic String getRequiredFormatted(String key) throws IllegalStateException
getRequiredFormatted in interface ConfigIllegalStateExceptionpublic String getFormatted(String key, Map<String,Object> parameters)
getFormatted in interface Configpublic String getRequiredFormatted(String key, Map<String,Object> parameters) throws IllegalStateException
getRequiredFormatted in interface ConfigIllegalStateExceptionpublic String getFormatted(String key, Object... parameters)
getFormatted in interface Configpublic String getRequiredFormatted(String key, Object... parameters) throws IllegalStateException
getRequiredFormatted in interface ConfigIllegalStateExceptionpublic boolean getBool(String key, boolean defaultValue)
public boolean getRequiredBool(String key) throws IllegalStateException, BoolFormatException
getRequiredBool in interface ConfigIllegalStateExceptionBoolFormatExceptionpublic int getRequiredInt(String key) throws IllegalStateException, NumberFormatException
getRequiredInt in interface ConfigIllegalStateExceptionNumberFormatExceptionpublic long getLong(String key, long defaultValue)
public long getRequiredLong(String key) throws IllegalStateException, NumberFormatException
getRequiredLong in interface ConfigIllegalStateExceptionNumberFormatExceptionpublic float getFloat(String key, float defaultValue)
public float getRequiredFloat(String key) throws IllegalStateException, NumberFormatException
getRequiredFloat in interface ConfigIllegalStateExceptionNumberFormatExceptionpublic double getDouble(String key, double defaultValue)
public double getRequiredDouble(String key) throws IllegalStateException, NumberFormatException
getRequiredDouble in interface ConfigIllegalStateExceptionNumberFormatExceptionpublic Date getRequiredDate(String key) throws IllegalStateException, DateFormatException
getRequiredDate in interface ConfigIllegalStateExceptionDateFormatExceptionpublic Time getRequiredTime(String key) throws IllegalStateException, DateFormatException
getRequiredTime in interface ConfigIllegalStateExceptionDateFormatExceptionpublic Timestamp getDateTime(String key)
getDateTime in interface Configpublic Timestamp getRequiredDateTime(String key) throws IllegalStateException, DateFormatException
getRequiredDateTime in interface ConfigIllegalStateExceptionDateFormatExceptionpublic void put(String key, boolean value)
public void put(String key, int value)
public void put(String key, long value)
public void put(String key, float value)
public void put(String key, double value)
public String toQueryEncoded()
public static ConfigMap parse(String queryEncoded) throws IllegalArgumentException
IllegalArgumentExceptionpublic static boolean isTrueValue(String value)
public static boolean isFalseValue(String value)
Copyright © 2020. All rights reserved.