Package net.solarnetwork.node.domain
Class Setting
java.lang.Object
net.solarnetwork.node.domain.Setting
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enumeration of setting flags. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFlags()Get the flags.getKey()Get the key.Get the modification date.getType()Get the type.getValue()Get the value.inthashCode()voidsetFlags(Set<Setting.SettingFlag> flags) Set the flags.voidSet the key.voidsetModified(Date modified) Set the modification date.voidSet the type.voidSet the value.toString()
-
Constructor Details
-
Setting
public Setting()Default constructor. -
Setting
Construct with values.- Parameters:
key- the keytype- the typevalue- the valueflags- the falgs
-
-
Method Details
-
toString
-
hashCode
public int hashCode() -
equals
-
getKey
Get the key.- Returns:
- the key
-
setKey
Set the key.- Parameters:
key- the key to set
-
getType
Get the type.- Returns:
- the type
-
setType
Set the type.- Parameters:
type- the type to set
-
getValue
Get the value.- Returns:
- the value
-
setValue
Set the value.- Parameters:
value- the value to set
-
getFlags
Get the flags.- Returns:
- the flags
-
setFlags
Set the flags.- Parameters:
flags- the flags to set
-
getModified
Get the modification date.- Returns:
- the date
-
setModified
Set the modification date.- Parameters:
modified- the date to set
-