Package org.apache.maven.settings
Class WrapperProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface
(package private) static interface
-
Field Summary
FieldsFields inherited from class java.util.Properties
defaults
-
Constructor Summary
ConstructorsConstructorDescriptionWrapperProperties
(Supplier<Map<String, String>> getter, Consumer<Properties> setter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
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) 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) 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) toString()
values()
private <T> T
writeOperation
(WrapperProperties.WriteOp<T> runner) private void
private Object
Methods inherited from class java.util.Properties
clone, rehash, storeToXML
-
Field Details
-
getter
-
setter
-
-
Constructor Details
-
WrapperProperties
-
-
Method Details
-
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
public int size() -
isEmpty
public boolean 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
-
toString
- Overrides:
toString
in classProperties
-
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
getOrDefault
- Specified by:
getOrDefault
in interfaceMap<Object,
Object> - Overrides:
getOrDefault
in classProperties
-
forEach
-
writeOperation
-
writeOperationVoid
-
setProperty
- Overrides:
setProperty
in classProperties
-
put
-
remove
-
putAll
-
clear
public void clear() -
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
-
load
- Overrides:
load
in classProperties
- Throws:
IOException
-
load
- Overrides:
load
in classProperties
- Throws:
IOException
-
save
- 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
-
writeReplace
- Throws:
ObjectStreamException
-