Package com.linkedin.venice.utils
Class PropertyBuilder
- java.lang.Object
-
- com.linkedin.venice.utils.PropertyBuilder
-
public class PropertyBuilder extends java.lang.Object
PropertyBuilder 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 VeniceProperties
build()
PropertyBuilder
put(java.io.File file)
PropertyBuilder
put(java.lang.String key, java.lang.Object value)
PropertyBuilder
put(java.util.Properties properties)
PropertyBuilder
putIfAbsent(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()
-
-