Class Config.Property.Stringifier

java.lang.Object
io.hypersistence.optimizer.core.config.Config.Property.Stringifier
Enclosing class:
Config.Property

public static class Config.Property.Stringifier extends Object
The Stringifier utility allows you to transform the Hypersistence properties to and from their String representation.
  • Constructor Details

    • Stringifier

      public Stringifier()
      Default constructor that uses an empty properties map.
    • Stringifier

      public Stringifier(Map<String,Object> properties)
      Build an instance using the provided properties.
      Parameters:
      properties - properties
    • Stringifier

      public Stringifier(String stringValue)
      Build an instance using the provided encoded properties String representation.
      Parameters:
      stringValue - the String representation of the associated properties
  • Method Details

    • getProperties

      public Map<String,Object> getProperties()
      Get the associated properties.
      Returns:
      properties
    • put

      public Config.Property.Stringifier put(String name, Object value)
      Add a new property using the provided name and value.
      Parameters:
      name - property name
      value - property value
      Returns:
      a reference to this object
    • toString

      public String toString()
      Encode the associated properties in their String representation.
      Overrides:
      toString in class Object
      Returns:
      the String representation of the associated properties