public class PropertiesBuilder extends Object
Used mainly for testing purposes.
Constructor and Description |
---|
PropertiesBuilder()
Constructor
|
Modifier and Type | Method and Description |
---|---|
Properties |
build()
Build the Properties object, based on previous parameters.
|
PropertiesBuilder |
on(Properties p)
The builder can update an existing Properties object.
|
PropertiesBuilder |
set(Object key,
Object... value)
Set a property.
|
PropertiesBuilder |
set(String key,
String value)
Set a property.
|
public PropertiesBuilder set(Object key, Object... value)
Perform automatic conversion for
key
- property namevalue
- one or multiple objectspublic PropertiesBuilder set(String key, String value)
key
- property namevalue
- property valuepublic PropertiesBuilder on(Properties p)
p
- target properties objectpublic Properties build()
Copyright © 2008–2018. All rights reserved.