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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getAllOfType(ComponentType componentType) final inthashCode()Returns a hash code value for this object.Returns the value of theparametersrecord component.Returns the value of therequestBodiesrecord component.Returns the value of theresponsesrecord component.schemas()Returns the value of theschemasrecord component.Returns the value of thesecuritySchemesrecord component.final StringtoString()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 aComponentsrecord class.- Parameters:
securitySchemes- the value for thesecuritySchemesrecord componentparameters- the value for theparametersrecord componentrequestBodies- the value for therequestBodiesrecord componentresponses- the value for theresponsesrecord componentschemas- the value for theschemasrecord 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 thesecuritySchemesrecord component.- Returns:
- the value of the
securitySchemesrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
requestBodies
Returns the value of therequestBodiesrecord component.- Returns:
- the value of the
requestBodiesrecord component
-
responses
Returns the value of theresponsesrecord component.- Returns:
- the value of the
responsesrecord component
-
schemas
Returns the value of theschemasrecord component.- Returns:
- the value of the
schemasrecord component
-