public class CopyOnFirstWriteProperties extends Properties
defaults
Constructor and Description |
---|
CopyOnFirstWriteProperties() |
CopyOnFirstWriteProperties(Properties p) |
save, store
public CopyOnFirstWriteProperties(Properties p)
public CopyOnFirstWriteProperties()
public String getProperty(String key)
getProperty
in class Properties
public String getProperty(String key, String defaultValue)
getProperty
in class Properties
public void list(PrintStream out)
list
in class Properties
public void list(PrintWriter out)
list
in class Properties
public void load(InputStream inStream) throws IOException
load
in class Properties
IOException
public void load(Reader reader) throws IOException
load
in class Properties
IOException
public void loadFromXML(InputStream inStream) throws IOException
loadFromXML
in class Properties
IOException
public Enumeration<?> propertyNames()
propertyNames
in class Properties
public Object setProperty(String key, String value)
setProperty
in class Properties
public void store(OutputStream out, String comments) throws IOException
store
in class Properties
IOException
public void storeToXML(OutputStream os, String comment) throws IOException
storeToXML
in class Properties
IOException
public void storeToXML(OutputStream os, String comment, String encoding) throws IOException
storeToXML
in class Properties
IOException
public Set<String> stringPropertyNames()
stringPropertyNames
in class Properties
public void clear()
public Object compute(Object key, BiFunction remappingFunction)
public Object computeIfAbsent(Object key, Function mappingFunction)
computeIfAbsent
in interface Map<Object,Object>
computeIfAbsent
in class Hashtable<Object,Object>
public Object computeIfPresent(Object key, BiFunction remappingFunction)
computeIfPresent
in interface Map<Object,Object>
computeIfPresent
in class Hashtable<Object,Object>
public boolean contains(Object value)
public boolean containsKey(Object key)
containsKey
in interface Map<Object,Object>
containsKey
in class Hashtable<Object,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<Object,Object>
containsValue
in class Hashtable<Object,Object>
public Enumeration<Object> elements()
public boolean equals(Object o)
public void forEach(BiConsumer action)
public Object getOrDefault(Object key, Object defaultValue)
getOrDefault
in interface Map<Object,Object>
getOrDefault
in class Hashtable<Object,Object>
public int hashCode()
public boolean isEmpty()
public Object merge(Object key, Object value, BiFunction remappingFunction)
public Object putIfAbsent(Object key, Object value)
putIfAbsent
in interface Map<Object,Object>
putIfAbsent
in class Hashtable<Object,Object>
public void replaceAll(BiFunction function)
replaceAll
in interface Map<Object,Object>
replaceAll
in class Hashtable<Object,Object>
public int size()
public Collection<Object> values()
public void setInterned(Properties p)
public Properties getInterned()
Copyright © 2022 The Apache Software Foundation. All rights reserved.