@Immutable public abstract class EntryValue extends Object
Validation ensures that the String has a maximum length of MAX_LENGTH and
contains only printable ASCII characters.
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LENGTH
The maximum length for a entry value.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
asString()
Returns the entry value as a
String. |
static EntryValue |
create(String value)
Constructs an
EntryValue from the given string. |
public static final int MAX_LENGTH
public static EntryValue create(String value)
EntryValue from the given string. The string must meet the following
requirements:
MAX_LENGTH.
value - the entry value.EntryValue from the given string.IllegalArgumentException - if the String is not valid.public abstract String asString()
String.String.