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 String
baseUrl()
Returns the value of thebaseUrl
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()
name()
Returns the value of thename
record component.ordinal()
Returns the value of theordinal
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
into
- Specified by:
into
in 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 thename
record component.- Returns:
- the value of the
name
record component
-
baseUrl
Returns the value of thebaseUrl
record component.- Returns:
- the value of the
baseUrl
record component
-
ordinal
Returns the value of theordinal
record component.- Returns:
- the value of the
ordinal
record component
-