Record Class AddI18nMessageReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.locale.entity.AddI18nMessageReq
- Record Components:
namespace- 国际化内容命名空间。messageKey- 国际化内容的键。
- All Implemented Interfaces:
io.github.xezzon.zeroweb.core.trait.Into<I18nMessage>
public record AddI18nMessageReq(@Alphanumeric @NotBlank @Size(max=255) String namespace, @Alphanumeric @NotBlank @Size(max=255) String messageKey)
extends Record
implements io.github.xezzon.zeroweb.core.trait.Into<I18nMessage>
新增国际化内容的请求参数。
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionAddI18nMessageReq(@Alphanumeric @NotBlank @Size(max=255) String namespace, @Alphanumeric @NotBlank @Size(max=255) String messageKey) Creates an instance of aAddI18nMessageReqrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.into()将当前请求对象转换为I18nMessage实体。@Alphanumeric @NotBlank @Size(max=255) StringReturns the value of themessageKeyrecord component.@Alphanumeric @NotBlank @Size(max=255) StringReturns the value of thenamespacerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AddI18nMessageReq
public AddI18nMessageReq(@Alphanumeric @NotBlank @Size(max=255) @Alphanumeric @NotBlank @Size(max=255) String namespace, @Alphanumeric @NotBlank @Size(max=255) @Alphanumeric @NotBlank @Size(max=255) String messageKey) Creates an instance of aAddI18nMessageReqrecord class.- Parameters:
namespace- the value for thenamespacerecord componentmessageKey- the value for themessageKeyrecord component
-
-
Method Details
-
into
将当前请求对象转换为I18nMessage实体。- Specified by:
intoin interfaceio.github.xezzon.zeroweb.core.trait.Into<I18nMessage>- Returns:
- 转换后的
I18nMessage实体。
-
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). -
namespace
-
messageKey
@Alphanumeric @NotBlank @Size(max=255) public @Alphanumeric @NotBlank @Size(max=255) String messageKey()Returns the value of themessageKeyrecord component.- Returns:
- the value of the
messageKeyrecord component
-