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.tao.trait.Into<Language>
public record AddLanguageReq(String languageTag, String description, Integer ordinal, Boolean enabled)
extends Record
implements io.github.xezzon.tao.trait.Into<Language>
新增语言的请求参数
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionAddLanguageReq
(String languageTag, String description, Integer ordinal, Boolean enabled) Creates an instance of aAddLanguageReq
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.enabled()
Returns the value of theenabled
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()
Returns the value of thelanguageTag
record component.ordinal()
Returns the value of theordinal
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AddLanguageReq
Creates an instance of aAddLanguageReq
record class.- Parameters:
languageTag
- the value for thelanguageTag
record componentdescription
- the value for thedescription
record componentordinal
- the value for theordinal
record componentenabled
- the value for theenabled
record component
-
-
Method Details
-
into
- Specified by:
into
in interfaceio.github.xezzon.tao.trait.Into<Language>
-
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)
. -
languageTag
Returns the value of thelanguageTag
record component.- Returns:
- the value of the
languageTag
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
ordinal
Returns the value of theordinal
record component.- Returns:
- the value of the
ordinal
record component
-
enabled
Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-