public class ProtectedProperties extends java.util.Properties implements RevisionHandler
Constructor and Description |
---|
ProtectedProperties(java.util.Properties props)
Creates a set of protected properties from a set of normal ones.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Overrides a method to prevent the properties from being modified.
|
java.lang.String |
getRevision()
Returns the revision string.
|
void |
load(java.io.InputStream inStream)
Overrides a method to prevent the properties from being modified.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Overrides a method to prevent the properties from being modified.
|
void |
putAll(java.util.Map t)
Overrides a method to prevent the properties from being modified.
|
java.lang.Object |
remove(java.lang.Object key)
Overrides a method to prevent the properties from being modified.
|
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Overrides a method to prevent the properties from being modified.
|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames
clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, toString, values
public ProtectedProperties(java.util.Properties props)
props
- the properties to be stored and protected.public java.lang.Object setProperty(java.lang.String key, java.lang.String value)
setProperty
in class java.util.Properties
java.lang.UnsupportedOperationException
- always.public void load(java.io.InputStream inStream)
load
in class java.util.Properties
java.lang.UnsupportedOperationException
- always.public void clear()
clear
in interface java.util.Map<java.lang.Object,java.lang.Object>
clear
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
java.lang.UnsupportedOperationException
- always.public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map<java.lang.Object,java.lang.Object>
put
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
java.lang.UnsupportedOperationException
- always.public void putAll(java.util.Map t)
putAll
in interface java.util.Map<java.lang.Object,java.lang.Object>
putAll
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
java.lang.UnsupportedOperationException
- always.public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.Object,java.lang.Object>
remove
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
java.lang.UnsupportedOperationException
- always.public java.lang.String getRevision()
getRevision
in interface RevisionHandler