public final class ImmutableProperties extends Properties
java.util.Properties
that is guaranteed to only contain string keys and valuesdefaults
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
Not supported for immutable properties
|
static ImmutableProperties |
copyOf(Map<String,String> map) |
static ImmutableProperties |
copyOf(Properties properties)
Create and return a new immutable properties object identical to the one passed in.
|
Set<Map.Entry<Object,Object>> |
entrySet() |
Set<Object> |
keySet() |
void |
load(InputStream inStream)
Deprecated.
Not supported for immutable properties
|
void |
load(Reader reader)
Deprecated.
Not supported for immutable properties
|
void |
loadFromXML(InputStream in)
Deprecated.
Not supported for immutable properties
|
static Properties |
of() |
static Properties |
of(String name,
String value) |
Object |
put(Object key,
Object value)
Deprecated.
Not supported for immutable properties
|
void |
putAll(Map<? extends Object,? extends Object> t)
Deprecated.
Not supported for immutable properties
|
Object |
remove(Object key)
Deprecated.
Not supported for immutable properties
|
Object |
setProperty(String key,
String value)
Deprecated.
Not supported for immutable properties
|
Collection<Object> |
values() |
getProperty, getProperty, list, list, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames
public static Properties of(String name, String value)
public static Properties of()
public static ImmutableProperties copyOf(Properties properties)
properties
is already immutable, no new object is created, the
properties
object passed in as a method argument is what is returned.NullPointerException
- if properties
is nullpublic static ImmutableProperties copyOf(Map<String,String> map)
@Deprecated public Object setProperty(String key, String value)
setProperty
in class Properties
@Deprecated public void load(Reader reader)
load
in class Properties
@Deprecated public void load(InputStream inStream)
load
in class Properties
@Deprecated public void loadFromXML(InputStream in)
loadFromXML
in class Properties
@Deprecated public Object put(Object key, Object value)
@Deprecated public Object remove(Object key)
@Deprecated public void putAll(Map<? extends Object,? extends Object> t)
@Deprecated public void clear()
Copyright © 2015 The Kuali Foundation. All rights reserved.