Record Class Localization.Message.Format
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Message.Format
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Message
public static record Localization.Message.Format(Localization.Message.Format.Animation animation, Localization.Message.Format.Condition condition, Localization.Message.Format.Fading fading, Localization.Message.Format.Object object, Localization.Message.Format.Padding padding, Localization.Message.Format.Replacement replacement, Localization.Message.Format.Mention mention, Localization.Message.Format.Moderation moderation, Localization.Message.Format.Names names, Localization.Message.Format.QuestionAnswer questionAnswer, Localization.Message.Format.Translate translate)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic classstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionFormat(Localization.Message.Format.Animation animation, Localization.Message.Format.Condition condition, Localization.Message.Format.Fading fading, Localization.Message.Format.Object object, Localization.Message.Format.Padding padding, Localization.Message.Format.Replacement replacement, Localization.Message.Format.Mention mention, Localization.Message.Format.Moderation moderation, Localization.Message.Format.Names names, Localization.Message.Format.QuestionAnswer questionAnswer, Localization.Message.Format.Translate translate) Creates an instance of aFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimationrecord component.builder()Returns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.fading()Returns the value of thefadingrecord component.final inthashCode()Returns a hash code value for this object.mention()Returns the value of thementionrecord component.Returns the value of themoderationrecord component.names()Returns the value of thenamesrecord component.object()Returns the value of theobjectrecord component.padding()Returns the value of thepaddingrecord component.Returns the value of thequestionAnswerrecord component.Returns the value of thereplacementrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslaterecord component.withModeration(Localization.Message.Format.Moderation moderation) withQuestionAnswer(Localization.Message.Format.QuestionAnswer questionAnswer) withReplacement(Localization.Message.Format.Replacement replacement)
-
Constructor Details
-
Format
public Format(@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/animation") Localization.Message.Format.Animation animation, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/condition") Localization.Message.Format.Condition condition, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fading") Localization.Message.Format.Fading fading, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/object") Localization.Message.Format.Object object, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/padding") Localization.Message.Format.Padding padding, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/replacement") Localization.Message.Format.Replacement replacement, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/mention") Localization.Message.Format.Mention mention, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation") Localization.Message.Format.Moderation moderation, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/names") Localization.Message.Format.Names names, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/questionanswer") Localization.Message.Format.QuestionAnswer questionAnswer, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/translate") Localization.Message.Format.Translate translate) Creates an instance of aFormatrecord class.- Parameters:
animation- the value for theanimationrecord componentcondition- the value for theconditionrecord componentfading- the value for thefadingrecord componentobject- the value for theobjectrecord componentpadding- the value for thepaddingrecord componentreplacement- the value for thereplacementrecord componentmention- the value for thementionrecord componentmoderation- the value for themoderationrecord componentnames- the value for thenamesrecord componentquestionAnswer- the value for thequestionAnswerrecord componenttranslate- the value for thetranslaterecord component
-
-
Method Details
-
builder
-
toBuilder
-
withAnimation
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCondition
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFading
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withObject
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPadding
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReplacement
public Localization.Message.Format withReplacement(Localization.Message.Format.Replacement replacement) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMention
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withModeration
public Localization.Message.Format withModeration(Localization.Message.Format.Moderation moderation) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNames
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withQuestionAnswer
public Localization.Message.Format withQuestionAnswer(Localization.Message.Format.QuestionAnswer questionAnswer) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTranslate
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
animation
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/animation") public Localization.Message.Format.Animation animation()Returns the value of theanimationrecord component.- Returns:
- the value of the
animationrecord component
-
condition
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/condition") public Localization.Message.Format.Condition condition()Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
fading
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/fading") public Localization.Message.Format.Fading fading()Returns the value of thefadingrecord component.- Returns:
- the value of the
fadingrecord component
-
object
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/object") public Localization.Message.Format.Object object()Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-
padding
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/padding") public Localization.Message.Format.Padding padding()Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-
replacement
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/replacement") public Localization.Message.Format.Replacement replacement()Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-
mention
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/mention") public Localization.Message.Format.Mention mention()Returns the value of thementionrecord component.- Returns:
- the value of the
mentionrecord component
-
moderation
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/moderation") public Localization.Message.Format.Moderation moderation()Returns the value of themoderationrecord component.- Returns:
- the value of the
moderationrecord component
-
names
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/names") public Localization.Message.Format.Names names()Returns the value of thenamesrecord component.- Returns:
- the value of the
namesrecord component
-
questionAnswer
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/questionanswer") public Localization.Message.Format.QuestionAnswer questionAnswer()Returns the value of thequestionAnswerrecord component.- Returns:
- the value of the
questionAnswerrecord component
-
translate
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/format/translate") public Localization.Message.Format.Translate translate()Returns the value of thetranslaterecord component.- Returns:
- the value of the
translaterecord component
-