org.kuali.common.util.property
Class ImmutableProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.kuali.common.util.property.ImmutableProperties
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Object,Object>
public final class ImmutableProperties
- extends Properties
- See Also:
- Serialized Form
| Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
clone, contains, containsKey, containsValue, elements, equals, get, hashCode, isEmpty, keys, rehash, size, toString |
ImmutableProperties
public ImmutableProperties(Properties original)
of
public static Properties of()
of
public static Properties of(Properties properties)
- Create and return a new immutable properties object identical to the one passed in. If
properties is already immutable, no new object is created, the
properties object passed in as a method argument is what is returned.
- Throws:
NullPointerException - if properties is null
setProperty
public Object setProperty(String key,
String value)
- Overrides:
setProperty in class Properties
load
public void load(Reader reader)
- Overrides:
load in class Properties
load
public void load(InputStream inStream)
- Overrides:
load in class Properties
loadFromXML
public void loadFromXML(InputStream in)
- Overrides:
loadFromXML in class Properties
put
public Object put(Object key,
Object value)
- Specified by:
put in interface Map<Object,Object>- Overrides:
put in class Hashtable<Object,Object>
remove
public Object remove(Object key)
- Specified by:
remove in interface Map<Object,Object>- Overrides:
remove in class Hashtable<Object,Object>
putAll
public void putAll(Map<? extends Object,? extends Object> t)
- Specified by:
putAll in interface Map<Object,Object>- Overrides:
putAll in class Hashtable<Object,Object>
clear
public void clear()
- Specified by:
clear in interface Map<Object,Object>- Overrides:
clear in class Hashtable<Object,Object>
keySet
public Set<Object> keySet()
- Specified by:
keySet in interface Map<Object,Object>- Overrides:
keySet in class Hashtable<Object,Object>
entrySet
public Set<Map.Entry<Object,Object>> entrySet()
- Specified by:
entrySet in interface Map<Object,Object>- Overrides:
entrySet in class Hashtable<Object,Object>
values
public Collection<Object> values()
- Specified by:
values in interface Map<Object,Object>- Overrides:
values in class Hashtable<Object,Object>
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.