Record Class UpdateAppReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.app.entity.UpdateAppReq
- Record Components:
id- 服务IDname- 服务名称baseUrl- 服务基础访问路径ordinal- 排序值 顺序越小越靠前
- All Implemented Interfaces:
io.github.xezzon.tao.trait.Into<App>
public record UpdateAppReq(String id, @NotNull String name, @URL String baseUrl, Integer ordinal)
extends Record
implements io.github.xezzon.tao.trait.Into<App>
更新服务信息
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateAppReq(String id, @NotNull String name, @URL String baseUrl, Integer ordinal) Creates an instance of aUpdateAppReqrecord class. -
Method Summary
Modifier and TypeMethodDescription@URL StringbaseUrl()Returns the value of thebaseUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.into()@NotNull Stringname()Returns the value of thenamerecord component.ordinal()Returns the value of theordinalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
into
- Specified by:
intoin interfaceio.github.xezzon.tao.trait.Into<App>
-
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 theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
ordinal
Returns the value of theordinalrecord component.- Returns:
- the value of the
ordinalrecord component
-