Record Class OpenApiComponents
java.lang.Object
java.lang.Record
dev.rafex.ether.http.openapi.model.OpenApiComponents
public record OpenApiComponents(Map<String, OpenApiSchema> schemas, Map<String, OpenApiResponse> responses)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOpenApiComponents(Map<String, OpenApiSchema> schemas, Map<String, OpenApiResponse> responses) Creates an instance of aOpenApiComponentsrecord class. -
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 theresponsesrecord component.schemas()Returns the value of theschemasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OpenApiComponents
public OpenApiComponents(Map<String, OpenApiSchema> schemas, Map<String, OpenApiResponse> responses) Creates an instance of aOpenApiComponentsrecord class.- Parameters:
schemas- the value for theschemasrecord componentresponses- the value for theresponsesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
schemas
Returns the value of theschemasrecord component.- Returns:
- the value of the
schemasrecord component
-
responses
Returns the value of theresponsesrecord component.- Returns:
- the value of the
responsesrecord component
-