public interface DefaultMessageMap
Modifier and Type | Method and Description |
---|---|
@NonNull Optional<String> |
getDefault(DefaultMessageType key)
Retrieves the default string value for the specified default message
type, using
DefaultMessageType.getFallback() if not set in
this map. |
@NonNull Optional<String> |
getDefault(DefaultMessageType key,
String defaultValue)
Retrieves the default string value for the specified default message
type, using a provided default value if not set in this map.
|
@NonNull Map<DefaultMessageType,String> |
getDefaults()
Retrieves the full list of all
DefaultMessageType to String
mappings. |
@NonNull DefaultMessageMap |
setDefault(DefaultMessageType key,
@Nullable String defaultString)
Sets a new default value for a given default message type.
|
@NonNull DefaultMessageMap setDefault(DefaultMessageType key, @Nullable String defaultString)
key
- message typedefaultString
- default value@NonNull Optional<String> getDefault(DefaultMessageType key)
DefaultMessageType.getFallback()
if not set in
this map.key
- message type@NonNull Optional<String> getDefault(DefaultMessageType key, String defaultValue)
key
- message typedefaultValue
- a fallback value for if no default is set@NonNull Map<DefaultMessageType,String> getDefaults()
DefaultMessageType
to String
mappings.Copyright © 2013–2021 Kitteh. All rights reserved.