Record Class Path
java.lang.Object
java.lang.Record
org.infinispan.rest.framework.openapi.Path
- Record Components:
path- A required property. The relative path (starting with `/`) to an individual endpoint.method- A required property holding the HTTP method information.
- All Implemented Interfaces:
Comparable<Path>, JsonSerialization
public record Path(String path, Method method, Operation operation)
extends Record
implements JsonSerialization, Comparable<Path>
Holds information about the relative paths and operations.
This class holds information about each path and parameters. Holding all the information necessary to recreate the tree of objects defined in the schema without additional objects.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.Returns the value of theoperationrecord component.path()Returns the value of thepathrecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Path
-
-
Method Details
-
toJson
- Specified by:
toJsonin interfaceJsonSerialization
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>
-
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). -
hashCode
-
toString
-
path
-
method
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-