Record Class UpdateI18nMessageReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.locale.entity.UpdateI18nMessageReq
- Record Components:
id- 国际化内容 IDnamespace- 国际化内容命名空间。messageKey- 国际化内容的键。
- All Implemented Interfaces:
io.github.xezzon.zeroweb.core.trait.Into<I18nMessage>
public record UpdateI18nMessageReq(@NotNull String id, @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
ConstructorsConstructorDescriptionUpdateI18nMessageReq(@NotNull String id, @Alphanumeric @NotBlank @Size(max=255) String namespace, @Alphanumeric @NotBlank @Size(max=255) String messageKey) Creates an instance of aUpdateI18nMessageReqrecord 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.@NotNull Stringid()Returns the value of theidrecord component.into()@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
-
UpdateI18nMessageReq
public UpdateI18nMessageReq(@NotNull @NotNull String id, @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 aUpdateI18nMessageReqrecord class.- Parameters:
id- the value for theidrecord componentnamespace- the value for thenamespacerecord componentmessageKey- the value for themessageKeyrecord component
-
-
Method Details
-
into
- Specified by:
intoin interfaceio.github.xezzon.zeroweb.core.trait.Into<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). -
id
-
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
-