Package com.randomnoun.common
Class PropertyParser.PropertiesWithComments
java.lang.Object
java.util.Dictionary<Object,Object>
java.util.Hashtable<Object,Object>
java.util.Properties
com.randomnoun.common.PropertyParser.PropertiesWithComments
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
- Enclosing class:
PropertyParser
- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone()
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) boolean
boolean
containsKey
(Object key) boolean
containsValue
(Object value) elements()
entrySet()
boolean
void
forEach
(BiConsumer<? super Object, ? super Object> action) getComment
(String key) getOrDefault
(Object key, Object defaultValue) getProperty
(String key) getProperty
(String key, String defaultValue) int
hashCode()
boolean
isEmpty()
keys()
keySet()
void
list
(PrintStream out) void
list
(PrintWriter out) void
load
(InputStream inStream) void
void
Enumeration
<?> void
putIfAbsent
(Object key, Object value) boolean
boolean
void
replaceAll
(BiFunction<? super Object, ? super Object, ?> function) void
save
(OutputStream out, String comments) Deprecated.setProperty
(String key, String value) int
size()
void
store
(OutputStream out, String comments) void
void
storeToXML
(OutputStream os, String comment) void
storeToXML
(OutputStream os, String comment, String encoding) void
storeToXML
(OutputStream os, String comment, Charset charset) toString()
values()
Methods inherited from class java.util.Properties
rehash
-
Constructor Details
-
PropertiesWithComments
-
-
Method Details
-
getComment
-
getComments
-
setProperty
- Overrides:
setProperty
in classProperties
-
load
- Overrides:
load
in classProperties
- Throws:
IOException
-
load
- Overrides:
load
in classProperties
- Throws:
IOException
-
save
Deprecated.- Overrides:
save
in classProperties
-
store
- Overrides:
store
in classProperties
- Throws:
IOException
-
store
- Overrides:
store
in classProperties
- Throws:
IOException
-
loadFromXML
- Overrides:
loadFromXML
in classProperties
- Throws:
IOException
InvalidPropertiesFormatException
-
storeToXML
- Overrides:
storeToXML
in classProperties
- Throws:
IOException
-
storeToXML
- Overrides:
storeToXML
in classProperties
- Throws:
IOException
-
storeToXML
- Overrides:
storeToXML
in classProperties
- Throws:
IOException
-
getProperty
- Overrides:
getProperty
in classProperties
-
getProperty
- Overrides:
getProperty
in classProperties
-
propertyNames
- Overrides:
propertyNames
in classProperties
-
stringPropertyNames
- Overrides:
stringPropertyNames
in classProperties
-
list
- Overrides:
list
in classProperties
-
list
- Overrides:
list
in classProperties
-
size
-
isEmpty
-
keys
- Overrides:
keys
in classProperties
-
elements
- Overrides:
elements
in classProperties
-
contains
- Overrides:
contains
in classProperties
-
containsValue
- Specified by:
containsValue
in interfaceMap<Object,
Object> - Overrides:
containsValue
in classProperties
-
containsKey
- Specified by:
containsKey
in interfaceMap<Object,
Object> - Overrides:
containsKey
in classProperties
-
get
-
put
-
remove
-
putAll
-
clear
-
toString
- Overrides:
toString
in classProperties
-
keySet
-
values
-
entrySet
-
equals
-
hashCode
-
getOrDefault
- Specified by:
getOrDefault
in interfaceMap<Object,
Object> - Overrides:
getOrDefault
in classProperties
-
forEach
-
replaceAll
- Specified by:
replaceAll
in interfaceMap<Object,
Object> - Overrides:
replaceAll
in classProperties
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceMap<Object,
Object> - Overrides:
putIfAbsent
in classProperties
-
remove
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceMap<Object,
Object> - Overrides:
computeIfAbsent
in classProperties
-
computeIfPresent
public Object computeIfPresent(Object key, BiFunction<? super Object, ? super Object, ?> remappingFunction) - Specified by:
computeIfPresent
in interfaceMap<Object,
Object> - Overrides:
computeIfPresent
in classProperties
-
compute
-
merge
-
clone
- Overrides:
clone
in classProperties
-