Package de.codecamp.messages
Interface ResolvableMessage
-
- All Superinterfaces:
MessageKey
- All Known Implementing Classes:
ResolvableMessageImpl
public interface ResolvableMessage extends MessageKey
Contains a message key code and the message arguments as named and indexed values to resolve it. But even named arguments have an implicit order (and therefore index) based on the order they are declared in for the message key. UseforCode(String)to create new instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classResolvableMessage.Builder
-
Field Summary
-
Fields inherited from interface de.codecamp.messages.MessageKey
TYPE_KEY_SUFFIX
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ResolvableMessage.BuilderforCode(String code)static ResolvableMessageforCodeNoArgs(String code)List<Object>getArgsByIndex()Map<String,Object>getArgsByName()Map<String,Object>getArgsByName(boolean includeByIndex)static ResolvableMessageof(String code)static ResolvableMessageof(String code, Map<String,Object> argsByName, List<Object> argsByIndex)-
Methods inherited from interface de.codecamp.messages.MessageKey
getCode
-
-
-
-
Method Detail
-
of
static ResolvableMessage of(String code)
-
of
static ResolvableMessage of(String code, Map<String,Object> argsByName, List<Object> argsByIndex)
-
forCode
static ResolvableMessage.Builder forCode(String code)
-
forCodeNoArgs
static ResolvableMessage forCodeNoArgs(String code)
-
-