Record Class DescribedEndpoint
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.mirage.openapi.DescribedEndpoint
- Record Components:
verb- the HTTP verb the OpenAPI operation is documented under; neverHttpVerb.ANYpath- the OpenAPI path template, e.g."/users/{id}"operationId- the operation'soperationId, ornullwhen not set- the operation's tags, in document order; empty when none are set, nevernull
public record DescribedEndpoint(HttpVerb verb, String path, String operationId, List<String> tags)
extends Record
A single HTTP verb + path template pair described by an OpenAPI operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationIdrecord component.path()Returns the value of thepathrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.verb()Returns the value of theverbrecord component.
-
Constructor Details
-
DescribedEndpoint
Creates an instance of aDescribedEndpointrecord class.- Parameters:
verb- the value for theverbrecord componentpath- the value for thepathrecord componentoperationId- the value for theoperationIdrecord componenttags- the value for thetagsrecord component
-
-
Method Details
-
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). -
verb
Returns the value of theverbrecord component.- Returns:
- the value of the
verbrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-