Class BulkSimpleMessage
java.lang.Object
com.atlassian.confluence.impl.hibernate.bulk.BulkSimpleMessage
- All Implemented Interfaces:
Message<BulkSimpleMessage>
,Comparable<BulkSimpleMessage>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
Object[]
getArgs()
getKey()
int
hashCode()
toString()
static BulkSimpleMessage
withKeyAndArgs
(BulkSimpleMessageTypes type, String key, Object... args) Creates a new SimpleMessage with the given key and arguments.static BulkSimpleMessage
withKeyAndArgs
(String key, Object... args) static BulkSimpleMessage
withTranslation
(String translation) Used when a message only has a translated string at creation time, usually in English.
-
Method Details
-
builder
-
withKeyAndArgs
-
withKeyAndArgs
public static BulkSimpleMessage withKeyAndArgs(BulkSimpleMessageTypes type, String key, Object... args) Creates a new SimpleMessage with the given key and arguments. -
withTranslation
Used when a message only has a translated string at creation time, usually in English.Use of this method is discouraged - try to use
withKeyAndArgs(String, Object...)
whenever possible. -
getKey
- Specified by:
getKey
in interfaceMessage<BulkSimpleMessage>
- Returns:
- the i18n key of this message
-
getArgs
- Specified by:
getArgs
in interfaceMessage<BulkSimpleMessage>
- Returns:
- the arguments to this message. May be null or an empty array.
-
getTranslation
- Specified by:
getTranslation
in interfaceMessage<BulkSimpleMessage>
- Returns:
- the translated message, may be null if this message has not been translated yet.
-
toString
-
equals
-
hashCode
public int hashCode()
-