public class StringConfiguration extends java.lang.Object implements Configuration
| Modifier and Type | Class and Description |
|---|---|
static class |
StringConfiguration.Comparator
Compares two StringConfigurations for equality.
|
static class |
StringConfiguration.Factory
Factory which performs the inverse of
getBytes(). |
CHARSET| Constructor and Description |
|---|
StringConfiguration(java.lang.String config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
byte[] |
getBytes()
Returns a byte representation of this Configuration which is suitable for writing to disk.
|
int |
hashCode() |
java.lang.String |
toJsonString()
Returns a JSON representation of this Configuration which is suitable for displaying to the
user.
|
public byte[] getBytes()
throws ConfigStoreException
ConfigurationgetBytes in interface ConfigurationConfigStoreException - if serialization failspublic java.lang.String toJsonString()
ConfigurationtoJsonString in interface Configurationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object