Class MyProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- org.teichert.databaseexplorer.beans.MyProperties
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,Object>
public class MyProperties extends Properties
Overloaded Java-Properties-Class to ignore empty key-values.
So all empty entries will be handled as null/not found.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description MyProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getProperty(String key)
String
getProperty(String key, String defaultValue)
-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Method Detail
-
getProperty
public String getProperty(String key)
- Overrides:
getProperty
in classProperties
-
getProperty
public String getProperty(String key, String defaultValue)
- Overrides:
getProperty
in classProperties
-
-