public class Setting extends Object implements Serializable
Constructor and Description |
---|
Setting(String value,
String name,
String section)
Creates a new setting.
|
Setting(String value,
String name,
String section,
boolean longValue)
Creates a new setting with a value that can be longer than 2KB if needed.
|
Setting(String value,
String name,
String section,
boolean longValue,
Date lastModified)
Creates a new setting with a value that can be longer than 2KB if needed and a timestamp.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Date |
getLastModified() |
String |
getName() |
String |
getSection() |
String |
getValue() |
int |
hashCode() |
boolean |
isLongSetting() |
void |
setLongValue(String value) |
void |
setValue(String value) |
String |
toString() |
public Setting(String value, String name, String section)
value
- the setting's value as a string limited to 2KBname
- the setting's name as a string limited to 512Bsection
- the setting's section as a string limited to 512Bpublic Setting(String value, String name, String section, boolean longValue)
value
- the setting's value. If longValue is set to true this can
be longer than 2KB. Note that due to performance reasons,
long values cannot hold unicode characters. You should encode
the value to base64 if needed.longValue
- if true, the length of the value-string can exceed 2KBname
- the setting's name as a string limited to 512Bsection
- the setting's section as a string limited to 512Bpublic Setting(String value, String name, String section, boolean longValue, Date lastModified)
value
- the setting's value. If longValue is set to true this can
be longer than 2KB. Note that due to performance reasons,
long values cannot hold unicode characters. You should encode
the value to base64 if needed.longValue
- if true, the length of the value-string can exceed 2KBname
- the setting's name as a string limited to 512Bsection
- the setting's section as a string limited to 512BlastModified
- the date at which this setting was last modifiedpublic String getValue()
public String getName()
public String getSection()
public void setValue(String value)
value
- the new value (limited to 2KB)public void setLongValue(String value)
value
- the new value. Can be longer than 2KB.public boolean isLongSetting()
public Date getLastModified()
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.