Record Class ModifyLanguageReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.locale.entity.ModifyLanguageReq
- Record Components:
id- 需要被修改的语言的IDlanguageTag- 语言标签description- 语言描述ordinal- 排序序号enabled- 是否启用
- All Implemented Interfaces:
io.github.xezzon.zeroweb.core.trait.Into<Language>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Size(max=255) StringReturns the value of thedescriptionrecord component.enabled()Returns the value of theenabledrecord component.final 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 thelanguageTagrecord component.@NotNull Integerordinal()Returns the value of theordinalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModifyLanguageReq
public ModifyLanguageReq(@NotNull @NotNull String id, @Alphanumeric @NotBlank @Size(max=255) @Alphanumeric @NotBlank @Size(max=255) String languageTag, @Size(max=255) @Size(max=255) String description, @NotNull @NotNull Integer ordinal, Boolean enabled) Creates an instance of aModifyLanguageReqrecord class.- Parameters:
id- the value for theidrecord componentlanguageTag- the value for thelanguageTagrecord componentdescription- the value for thedescriptionrecord componentordinal- the value for theordinalrecord componentenabled- the value for theenabledrecord component
-
-
Method Details
-
into
-
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
-
languageTag
@Alphanumeric @NotBlank @Size(max=255) public @Alphanumeric @NotBlank @Size(max=255) String languageTag()Returns the value of thelanguageTagrecord component.- Returns:
- the value of the
languageTagrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
ordinal
-
enabled
-