Record Class AddAppReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.app.entity.AddAppReq
- Record Components:
name- 服务名称baseUrl- 基础访问路径ordinal- 排序值 顺序越小越靠前
- All Implemented Interfaces:
io.github.xezzon.tao.trait.Into<App>
public record AddAppReq(String name, @URL String baseUrl, Integer ordinal)
extends Record
implements io.github.xezzon.tao.trait.Into<App>
新增服务
- Author:
- xezzon
-
Constructor Summary
Constructors -
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.into()name()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). -
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
-