Record Class ModifyLanguageReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.locale.entity.ModifyLanguageReq
- Record Components:
languageTag
- 语言标签description
- 语言描述ordinal
- 排序序号enabled
- 是否启用
- All Implemented Interfaces:
io.github.xezzon.tao.trait.Into<Language>
public record ModifyLanguageReq(String id, String languageTag, String description, Integer ordinal, Boolean enabled)
extends Record
implements io.github.xezzon.tao.trait.Into<Language>
修改语言的请求参数
- Author:
- xezzon
-
Constructor Summary
Constructors -
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.id()
Returns the value of theid
record component.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
-
ModifyLanguageReq
public ModifyLanguageReq(String id, String languageTag, String description, Integer ordinal, Boolean enabled) Creates an instance of aModifyLanguageReq
record class.- Parameters:
id
- the value for theid
record componentlanguageTag
- 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)
. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
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
-