Package ai.promoted.delivery.client
Class PropertiesFactory
- java.lang.Object
-
- ai.promoted.delivery.client.PropertiesFactory
-
public class PropertiesFactory extends Object
Helper methods to create Properties.
-
-
Constructor Summary
Constructors Constructor Description PropertiesFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertiescreateProperties(Map<String,Object> properties)Create a properties with a struct equivalent to the given map.static Properties.BuildercreatePropertiesBuilder(Map<String,Object> properties)Create a properties builder with a struct equivalent to the given map.
-
-
-
Method Detail
-
createPropertiesBuilder
public static Properties.Builder createPropertiesBuilder(Map<String,Object> properties)
Create a properties builder with a struct equivalent to the given map.- Parameters:
map- the properties as a map- Returns:
- a populated Properties
-
createProperties
public static Properties createProperties(Map<String,Object> properties)
Create a properties with a struct equivalent to the given map.- Parameters:
map- the properties as a map- Returns:
- a populated Properties
-
-