Package org.picocontainer
Class Characteristics.ImmutableProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- org.picocontainer.Characteristics.ImmutableProperties
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,Object>
- Enclosing class:
- Characteristics
public static class Characteristics.ImmutableProperties extends Properties
Read only property set. Once constructed, all methods that modify state will throw UnsupportedOperationException.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description ImmutableProperties(String name, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Read Only Object: will throw UnsupportedOperationException.Object
put(Object key, Object value)
Once object is constructed, this will throw UnsupportedOperationException because this class is a read only wrapper.void
putAll(Map<? extends Object,? extends Object> t)
Read Only Object: will throw UnsupportedOperationException.Object
remove(Object o)
Read Only Object: will throw UnsupportedOperationException.Object
setProperty(String string, String string1)
Read Only Object: will throw UnsupportedOperationException.-
Methods inherited from class java.util.Properties
clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, putIfAbsent, rehash, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Method Detail
-
setProperty
public Object setProperty(String string, String string1)
Read Only Object: will throw UnsupportedOperationException.- Overrides:
setProperty
in classProperties
-
clear
public void clear()
Read Only Object: will throw UnsupportedOperationException.
-
put
public Object put(Object key, Object value)
Once object is constructed, this will throw UnsupportedOperationException because this class is a read only wrapper.
-
-