Class KeyValueCfgObject

java.lang.Object
dev.voidframework.core.remoteconfiguration.KeyValueCfgObject

public final class KeyValueCfgObject extends Object
Represents a simple key / value object. Key must be a simple string and value could be a string representing anything (ie: [1,2,3]).
  • Constructor Details

    • KeyValueCfgObject

      public KeyValueCfgObject(String key, String value)
      Build a new instance.
      Parameters:
      key - The configuration key
      value - The configuration value
  • Method Details

    • apply

      public void apply(StringBuilder appConfig)
      Tries to add this configuration object into the application configuration.
      Parameters:
      appConfig - The application configuration content
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringWithAdaptativeMask

      public String toStringWithAdaptativeMask()
      Same as toString() but with a potential mask applied to the value.
      Returns:
      A string representation of the object