Record Class OpenApiMediaType
java.lang.Object
java.lang.Record
dev.rafex.ether.http.openapi.model.OpenApiMediaType
-
Constructor Summary
ConstructorsConstructorDescriptionOpenApiMediaType(OpenApiSchema schema, Object example) Creates an instance of aOpenApiMediaTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.example()Returns the value of theexamplerecord component.final inthashCode()Returns a hash code value for this object.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OpenApiMediaType
Creates an instance of aOpenApiMediaTyperecord class.- Parameters:
schema- the value for theschemarecord componentexample- the value for theexamplerecord 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). -
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
example
Returns the value of theexamplerecord component.- Returns:
- the value of the
examplerecord component
-