Record Class AddOpenapiReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.openapi.entity.AddOpenapiReq
- Record Components:
code
- 接口编码destination
- 后端地址httpMethod
- 请求接口的HTTP方法
- All Implemented Interfaces:
io.github.xezzon.tao.trait.Into<Openapi>
public record AddOpenapiReq(@Alphanumeric(excludes="\\.") String code, String destination, HttpMethod httpMethod)
extends Record
implements io.github.xezzon.tao.trait.Into<Openapi>
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionAddOpenapiReq
(@Alphanumeric(excludes="\\.") String code, String destination, HttpMethod httpMethod) Creates an instance of aAddOpenapiReq
record class. -
Method Summary
Modifier and TypeMethodDescription@Alphanumeric(excludes="\\.") String
code()
Returns the value of thecode
record component.Returns the value of thedestination
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.Returns the value of thehttpMethod
record component.into()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AddOpenapiReq
public AddOpenapiReq(@Alphanumeric(excludes="\\.") @Alphanumeric(excludes="\\.") String code, String destination, HttpMethod httpMethod) Creates an instance of aAddOpenapiReq
record class.- Parameters:
code
- the value for thecode
record componentdestination
- the value for thedestination
record componenthttpMethod
- the value for thehttpMethod
record component
-
-
Method Details
-
into
- Specified by:
into
in interfaceio.github.xezzon.tao.trait.Into<Openapi>
-
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)
. -
code
Returns the value of thecode
record component.- Returns:
- the value of the
code
record component
-
destination
Returns the value of thedestination
record component.- Returns:
- the value of the
destination
record component
-
httpMethod
Returns the value of thehttpMethod
record component.- Returns:
- the value of the
httpMethod
record component
-