Record Class Reference
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.model.Reference
- Record Components:
name- the name of the component the reference names directlysummary- the reference's ownsummary, ornulldescription- the reference's owndescription, ornull; when present, OpenAPI 3.1 has it override the component'sother- any other key written beside the$ref, as parsed; OpenAPI has these ignored
public record Reference(String name, String summary, String description, Map<String,Object> other)
extends Record
A
$ref written where a parameter, request body or response would be.
The object carrying it is resolved: its typed fields are those of the component the reference leads to, following references to references. What the reference itself says is kept here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.other()Returns the value of theotherrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Reference
Creates an instance of aReferencerecord class.- Parameters:
name- the value for thenamerecord componentsummary- the value for thesummaryrecord componentdescription- the value for thedescriptionrecord componentother- the value for theotherrecord component
-
-
Method Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
other
Returns the value of theotherrecord component.- Returns:
- the value of the
otherrecord component
-