Class Setting

java.lang.Object
net.solarnetwork.node.domain.Setting

public class Setting extends Object
An application setting object.

A setting is based on a key and type, the combination of which forms a unique key for its associated value. No values are allowed to be null, but empty strings are allowed.

Version:
2.0
Author:
matt
  • Constructor Details

    • Setting

      public Setting()
      Default constructor.
    • Setting

      public Setting(String key, String type, String value, Set<Setting.SettingFlag> flags)
      Construct with values.
      Parameters:
      key - the key
      type - the type
      value - the value
      flags - the falgs
  • Method Details

    • toString

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getKey

      public String getKey()
      Get the key.
      Returns:
      the key
    • setKey

      public void setKey(String key)
      Set the key.
      Parameters:
      key - the key to set
    • getType

      public String getType()
      Get the type.
      Returns:
      the type
    • setType

      public void setType(String type)
      Set the type.
      Parameters:
      type - the type to set
    • getValue

      public String getValue()
      Get the value.
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Set the value.
      Parameters:
      value - the value to set
    • getFlags

      public Set<Setting.SettingFlag> getFlags()
      Get the flags.
      Returns:
      the flags
    • setFlags

      public void setFlags(Set<Setting.SettingFlag> flags)
      Set the flags.
      Parameters:
      flags - the flags to set
    • getModified

      public Date getModified()
      Get the modification date.
      Returns:
      the date
    • setModified

      public void setModified(Date modified)
      Set the modification date.
      Parameters:
      modified - the date to set