Record Class Components
java.lang.Object
java.lang.Record
com.mohamnag.jstatic.plugins.openapi_processor.oas3.Components
public record Components(Map<String,SecurityScheme> securitySchemes, Map<String,Parameter> parameters, Map<String,RequestBody> requestBodies, Map<String,Response> responses, Map<String,Schema> schemas)
extends Record
Currently not supported types:
- callbacks
- examples
- headers
- links
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getAllOfType
(ComponentType componentType) final int
hashCode()
Returns a hash code value for this object.Returns the value of theparameters
record component.Returns the value of therequestBodies
record component.Returns the value of theresponses
record component.schemas()
Returns the value of theschemas
record component.Returns the value of thesecuritySchemes
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Components
public Components(Map<String, SecurityScheme> securitySchemes, Map<String, Parameter> parameters, Map<String, RequestBody> requestBodies, Map<String, Response> responses, Map<String, Schema> schemas) Creates an instance of aComponents
record class.- Parameters:
securitySchemes
- the value for thesecuritySchemes
record componentparameters
- the value for theparameters
record componentrequestBodies
- the value for therequestBodies
record componentresponses
- the value for theresponses
record componentschemas
- the value for theschemas
record component
-
-
Method Details
-
getAllOfType
-
streamAll
-
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)
. -
securitySchemes
Returns the value of thesecuritySchemes
record component.- Returns:
- the value of the
securitySchemes
record component
-
parameters
Returns the value of theparameters
record component.- Returns:
- the value of the
parameters
record component
-
requestBodies
Returns the value of therequestBodies
record component.- Returns:
- the value of the
requestBodies
record component
-
responses
Returns the value of theresponses
record component.- Returns:
- the value of the
responses
record component
-
schemas
Returns the value of theschemas
record component.- Returns:
- the value of the
schemas
record component
-