Record Class UpsertTranslationReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.locale.entity.UpsertTranslationReq
- Record Components:
namespace
- 命名空间 与国际化内容的命名空间一致messageKey
- 国际化内容language
- 国际化语言标签content
- 国际化文本
- All Implemented Interfaces:
io.github.xezzon.tao.trait.Into<Translation>
public record UpsertTranslationReq(String namespace, String messageKey, String language, String content)
extends Record
implements io.github.xezzon.tao.trait.Into<Translation>
更新或新增国际化文本的请求体
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionUpsertTranslationReq
(String namespace, String messageKey, String language, String content) Creates an instance of aUpsertTranslationReq
record class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()
Returns the value of thecontent
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.into()
language()
Returns the value of thelanguage
record component.Returns the value of themessageKey
record component.Returns the value of thenamespace
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
UpsertTranslationReq
Creates an instance of aUpsertTranslationReq
record class.- Parameters:
namespace
- the value for thenamespace
record componentmessageKey
- the value for themessageKey
record componentlanguage
- the value for thelanguage
record componentcontent
- the value for thecontent
record component
-
-
Method Details
-
into
- Specified by:
into
in interfaceio.github.xezzon.tao.trait.Into<Translation>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
namespace
Returns the value of thenamespace
record component.- Returns:
- the value of the
namespace
record component
-
messageKey
Returns the value of themessageKey
record component.- Returns:
- the value of the
messageKey
record component
-
language
Returns the value of thelanguage
record component.- Returns:
- the value of the
language
record component
-
content
Returns the value of thecontent
record component.- Returns:
- the value of the
content
record component
-