Record Class ApiDocResponseDescriptor
java.lang.Object
java.lang.Record
io.fluxzero.sdk.web.ApiDocResponseDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionApiDocResponseDescriptor(int status, String description, String ref, Type type, String contentType) Creates an instance of aApiDocResponseDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.Returns 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.ref()Returns the value of therefrecord component.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ApiDocResponseDescriptor
public ApiDocResponseDescriptor(int status, String description, String ref, Type type, String contentType) Creates an instance of aApiDocResponseDescriptorrecord class.- Parameters:
status- the value for thestatusrecord componentdescription- the value for thedescriptionrecord componentref- the value for therefrecord componenttype- the value for thetyperecord componentcontentType- the value for thecontentTyperecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
status
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
ref
Returns the value of therefrecord component.- Returns:
- the value of the
refrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-