Class Config.Property.Stringifier
java.lang.Object
io.hypersistence.optimizer.core.config.Config.Property.Stringifier
- Enclosing class:
- Config.Property
The
Stringifier utility allows you to transform the Hypersistence properties
to and from their String representation.-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor that uses an empty properties map.Stringifier(String stringValue) Build an instance using the provided encoded propertiesStringrepresentation.Stringifier(Map<String, Object> properties) Build an instance using the provided properties. -
Method Summary
-
Constructor Details
-
Stringifier
public Stringifier()Default constructor that uses an empty properties map. -
Stringifier
Build an instance using the provided properties.- Parameters:
properties- properties
-
Stringifier
Build an instance using the provided encoded propertiesStringrepresentation.- Parameters:
stringValue- theStringrepresentation of the associated properties
-
-
Method Details
-
getProperties
Get the associated properties.- Returns:
- properties
-
put
Add a new property using the provided name and value.- Parameters:
name- property namevalue- property value- Returns:
- a reference to this object
-
toString
Encode the associatedpropertiesin theirStringrepresentation.
-