Package com.saperion.ngc.configuration
Class CombinedProperties
java.lang.Object
com.saperion.ngc.configuration.CombinedProperties
A Map with string-keys and values containing the values from two 
 configuration files. The values read from the customFile will
 overwrite the values read from the defaultFile.
- 
Nested Class Summary
- 
Constructor SummaryConstructorsConstructorDescriptionCombinedProperties(String defaultFile, String customFile, boolean caseSensitive) Creates a new CombinedProperties containing the values from the defaultFile and the customFile.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
- 
Constructor Details- 
CombinedPropertiespublic CombinedProperties(String defaultFile, String customFile, boolean caseSensitive) throws IOException Creates a new CombinedProperties containing the values from the defaultFile and the customFile. The files will be loaded from the classpath byClass.getResourceAsStream(String).- Parameters:
- defaultFile- the file containing the default values
- customFile- the file containing the custom values
- caseSensitive- if false, the returned map will be an instance of- CaseInsensitiveMap
- Throws:
- IOException- IO exception when reading the files
 
 
- 
- 
Method Details- 
sizepublic int size()
- 
isEmptypublic boolean isEmpty()
- 
containsKey- Specified by:
- containsKeyin interface- Map<String,- String> 
 
- 
containsValue- Specified by:
- containsValuein interface- Map<String,- String> 
 
- 
get
- 
put
- 
remove
- 
putAll
- 
clearpublic void clear()
- 
keySet
- 
values
- 
entrySet
 
-