Package com.dtolabs.utils
Class PropertiesUtil.PrefixAdder
- java.lang.Object
-
- com.dtolabs.utils.PropertiesUtil.PrefixAdder
-
- All Implemented Interfaces:
PropertiesUtil.Adder
- Enclosing class:
- PropertiesUtil
public static class PropertiesUtil.PrefixAdder extends java.lang.Object implements PropertiesUtil.Adder
A Adder that adds new properties to the input Properties object using a given prefix to prepend to the name of all new properties.
-
-
Constructor Summary
Constructors Constructor Description PrefixAdder(java.util.Properties props, java.lang.String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperties(java.util.Properties properties)
Add all the input Properties.void
addProperty(java.lang.String name, java.lang.String value)
Add a property.PropertiesUtil.Adder
withPrefix(java.lang.String prefix)
-
-
-
Method Detail
-
addProperty
public void addProperty(java.lang.String name, java.lang.String value)
Description copied from interface:PropertiesUtil.Adder
Add a property.- Specified by:
addProperty
in interfacePropertiesUtil.Adder
- Parameters:
name
- namevalue
- value
-
addProperties
public void addProperties(java.util.Properties properties)
Description copied from interface:PropertiesUtil.Adder
Add all the input Properties.- Specified by:
addProperties
in interfacePropertiesUtil.Adder
- Parameters:
properties
- properties
-
withPrefix
public PropertiesUtil.Adder withPrefix(java.lang.String prefix)
-
-