Record Class AddLanguageReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.locale.entity.AddLanguageReq
- Record Components:
languageTag- 语言标签description- 语言描述ordinal- 排序enabled- 是否启用
- All Implemented Interfaces:
io.github.xezzon.zeroweb.core.trait.Into<Language>
-
Constructor Summary
ConstructorsConstructorDescriptionAddLanguageReq(@Alphanumeric @NotBlank @Size(max=255) String languageTag, @Size(max=255) String description, @NotNull Integer ordinal, Boolean enabled) Creates an instance of aAddLanguageReqrecord class. -
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.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
-
AddLanguageReq
public AddLanguageReq(@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 aAddLanguageReqrecord class.- Parameters:
languageTag- 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). -
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
-