Package com.linkedin.venice.utils
Class PropertyBuilder
- java.lang.Object
-
- com.linkedin.venice.utils.PropertyBuilder
-
public class PropertyBuilder extends java.lang.ObjectPropertyBuilder is the suggested Way to construct VeniceProperties. Ideally you use the PropertyBuilder APIs to add properties and once all the properties are added, call the build method to get the VeniceProperties object. All the put methods overwrite the property if it already exists.
-
-
Constructor Summary
Constructors Constructor Description PropertyBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VenicePropertiesbuild()PropertyBuilderput(java.io.File file)PropertyBuilderput(java.lang.String key, java.lang.Object value)PropertyBuilderput(java.util.Properties properties)PropertyBuilderputIfAbsent(java.lang.String key, java.lang.Object value)
-
-
-
Method Detail
-
put
public PropertyBuilder put(java.lang.String key, java.lang.Object value)
-
putIfAbsent
public PropertyBuilder putIfAbsent(java.lang.String key, java.lang.Object value)
-
put
public PropertyBuilder put(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
put
public PropertyBuilder put(java.util.Properties properties)
-
build
public VeniceProperties build()
-
-