Package org.eclipse.epsilon.common.util
Class StringProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- org.eclipse.epsilon.common.util.StringProperties
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,Object>
public class StringProperties extends Properties
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StringProperties.Builder
Convenience class for chainingput(Object, Object)
invocations.
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description StringProperties()
StringProperties(String properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringProperties.Builder
Builder()
StringProperties
clone()
boolean
getBooleanProperty(String key, boolean def)
int
getIntegerProperty(String key, int default_)
String
getProperty(String key)
String
getProperty(String key, String defaultValue)
boolean
hasProperty(String key)
void
load(String properties)
Object
put(Object key, Object value)
void
putAll(Map<?,?> map)
String
toString()
-
Methods inherited from class java.util.Properties
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, values
-
-
-
-
Constructor Detail
-
StringProperties
public StringProperties()
-
StringProperties
public StringProperties(String properties)
-
-
Method Detail
-
Builder
public static StringProperties.Builder Builder()
- Returns:
- Since:
- 2.1
-
load
public void load(String properties)
-
toString
public String toString()
- Overrides:
toString
in classProperties
-
hasProperty
public boolean hasProperty(String key)
-
getProperty
public String getProperty(String key)
- Overrides:
getProperty
in classProperties
-
getProperty
public String getProperty(String key, String defaultValue)
- Overrides:
getProperty
in classProperties
-
getIntegerProperty
public int getIntegerProperty(String key, int default_)
-
putAll
public void putAll(Map<?,?> map)
-
getBooleanProperty
public boolean getBooleanProperty(String key, boolean def)
-
clone
public StringProperties clone()
- Overrides:
clone
in classProperties
-
-