@ExperimentalApi public class SimpleMessage extends Object implements Message<SimpleMessage>
Message
.Modifier and Type | Class and Description |
---|---|
static class |
SimpleMessage.SimpleMessageBuilder |
Modifier and Type | Method and Description |
---|---|
static SimpleMessage.SimpleMessageBuilder |
builder() |
static SimpleMessage |
copyOf(Message message) |
boolean |
equals(Object obj) |
Object[] |
getArgs() |
String |
getKey() |
String |
getTranslation() |
int |
hashCode() |
String |
toString() |
static SimpleMessage |
withKeyAndArgs(String key,
Object... args)
Creates a new SimpleMessage with the given key and arguments.
|
static SimpleMessage |
withTranslation(String translation)
Used when a message only has a translated string at creation time, usually in English.
|
public static SimpleMessage.SimpleMessageBuilder builder()
public static SimpleMessage withKeyAndArgs(String key, Object... args)
public static SimpleMessage withTranslation(String translation)
Use of this method is discouraged - try to use withKeyAndArgs(String, Object...)
whenever possible.
public String getKey()
getKey
in interface Message<SimpleMessage>
public Object[] getArgs()
getArgs
in interface Message<SimpleMessage>
public String getTranslation()
getTranslation
in interface Message<SimpleMessage>
public static SimpleMessage copyOf(Message message)
Copyright © 2003–2020 Atlassian. All rights reserved.