Package com.vaadin.flow.internal
Class UnmodifiableProperties
java.lang.Object
java.util.Dictionary<Object,Object>
java.util.Hashtable<Object,Object>
java.util.Properties
com.vaadin.flow.internal.UnmodifiableProperties
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
A
Properties instance which holds a snapshot of the properties given
to the constructor and rejects all attempts to modify the contents
afterwards.
Both the mutating methods and the mutating operations of the
keySet(), values() and entrySet() views throw an
UnsupportedOperationException. Use
new Properties().putAll(properties) to get a modifiable copy of the
contents.
For internal use only. May be renamed or removed in a future release.
- Since:
- 25.3
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults -
Constructor Summary
ConstructorsConstructorDescriptionUnmodifiableProperties(Properties properties) Creates a read-only copy of the given properties. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()compute(Object key, BiFunction<? super Object, ? super Object, ?> remappingFunction) computeIfAbsent(Object key, Function<? super Object, ?> mappingFunction) computeIfPresent(Object key, BiFunction<? super Object, ? super Object, ?> remappingFunction) entrySet()keySet()voidload(InputStream stream) voidvoidloadFromXML(InputStream stream) voidputIfAbsent(Object key, Object value) booleanbooleanvoidreplaceAll(BiFunction<? super Object, ? super Object, ?> function) setProperty(String key, String value) values()Methods inherited from class java.util.Properties
clone, contains, containsKey, containsValue, elements, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, list, list, propertyNames, rehash, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString
-
Constructor Details
-
UnmodifiableProperties
Creates a read-only copy of the given properties.- Parameters:
properties- the properties to copy, notnull
-
-
Method Details
-
setProperty
- Overrides:
setPropertyin classProperties
-
put
-
putAll
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<Object,Object> - Overrides:
putIfAbsentin classProperties
-
remove
-
remove
-
clear
public void clear() -
replace
-
replace
-
replaceAll
- Specified by:
replaceAllin interfaceMap<Object,Object> - Overrides:
replaceAllin classProperties
-
compute
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<Object,Object> - Overrides:
computeIfAbsentin classProperties
-
computeIfPresent
public Object computeIfPresent(Object key, BiFunction<? super Object, ? super Object, ?> remappingFunction) - Specified by:
computeIfPresentin interfaceMap<Object,Object> - Overrides:
computeIfPresentin classProperties
-
merge
-
load
- Overrides:
loadin classProperties- Throws:
IOException
-
load
- Overrides:
loadin classProperties- Throws:
IOException
-
loadFromXML
- Overrides:
loadFromXMLin classProperties- Throws:
IOException
-
keySet
-
values
-
entrySet
-