public interface Context
Context keys and values may not be null or empty. A key/value will be deemed empty if it's length is zero, or if it consists of only space characters.
ContextSet| Modifier and Type | Method and Description |
|---|---|
@NonNull String |
getKey()
Gets the context key.
|
@NonNull String |
getValue()
Gets the context value
|
static boolean |
isValidKey(@Nullable String key)
Tests whether
key is valid. |
static boolean |
isValidValue(@Nullable String value)
Tests whether
value is valid. |
static boolean isValidKey(@Nullable String key)
key is valid.
Context keys and values may not be null or empty. A key/value will be deemed empty if it's length is zero, or if it consists of only space characters.
An exception is thrown when an invalid key is added to a ContextSet.
key - the key to teststatic boolean isValidValue(@Nullable String value)
value is valid.
Context keys and values may not be null or empty. A key/value will be deemed empty if it's length is zero, or if it consists of only space characters.
An exception is thrown when an invalid value is added to a ContextSet.
value - the value to test@NonNull String getKey()
@NonNull String getValue()