Package com.killcoding.tool
Class ConfigProperties
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Longprivate static ConfigCustomLoadstatic Stringstatic final Stringprotected static ExecutorServiceprivate StringFields inherited from class java.util.Properties
defaults -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAutoLoad(Runnable cpRun) static booleancompareProperties(ConfigProperties props1, ConfigProperties props2) private static LonggetBoolean(String key) getBoolean(String key, Boolean defaultValue) getConfigProperties(String key, ConfigProperties defaultValue) getDateTime(String key) getDateTime(String key, String defaultValue) static StringgetFileSize(String key, Long defaultValue) getInteger(String key) getInteger(String key, Integer defaultValue) getMilliSeconds(String key) getMilliSeconds(String key, Long defaultValue) getSeconds(String key) getSeconds(String key, Long defaultValue) static Stringstatic booleanvoidvoidvoidload(InputStream inputStream) voidprivate static booleanloadConfigCustom(File file, ConfigProperties target) static StringparseContent(String content) static StringparseContent(String content, String replaceNullChar) static DateparseDateTime(String objectValue, String defaultValue) static LongparseFileSize(Object objectValue, Long defaultValue) static LongparseTimeToMs(Object objectValue, Long defaultValue) static LongparseTimeToSec(Object objectValue, Long defaultValue) putAllAndReturnSlef(Map<String, Object> map) putAndReturnSlef(String key, Object value) voidstatic voidsetConfigCustom(ConfigCustomLoad customLoad) private static voidMethods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Field Details
-
ENV_VAR_REGEX
- See Also:
-
DATETIME_PATTERN
-
AUTO_LOAD_TIMER
-
AUTO_LOAD_CP
-
CUSTOMLOAD
-
executor
-
parseContentRaw
-
-
Constructor Details
-
ConfigProperties
-
ConfigProperties
-
ConfigProperties
public ConfigProperties()
-
-
Method Details
-
addAutoLoad
-
startAutoLoad
-
getAutoLoadTimer
-
setConfigCustom
-
loadConfigCustom
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
load
- Overrides:
loadin classProperties- Throws:
IOException
-
load
- Overrides:
loadin classProperties- Throws:
IOException
-
putAndReturnSlef
-
removeAndReturnSlef
-
putAllAndReturnSlef
-
removeAllNullValues
-
conver
-
getBoolean
-
getBoolean
-
getArray
-
getArray
-
getArray
-
getString
-
getString
-
getShort
-
getShort
-
getInteger
-
getInteger
-
getLong
-
getLong
-
getFloat
-
getFloat
-
getDouble
-
getDouble
-
getSeconds
-
getSeconds
-
getMilliSeconds
-
getMilliSeconds
-
getFileSize
-
getDateTime
-
getDateTime
-
getConfigProperties
-
getConfigProperties
-
getMap
-
getMap
-
getContentRaw
-
isBlank
-
parseTimeToSec
-
parseTimeToMs
-
parseDateTime
-
parseFileSize
-
getSysEnv
-
getEnv
-
parseContent
-
parseContent
-
compareProperties
-