Record Class Info
java.lang.Object
java.lang.Record
org.infinispan.rest.framework.openapi.Info
- Record Components:
title- : A required property with the title of the API.description- : A optional property with a description about the API.license- : A optional property with the license information about the software.version- : A required property with the software version.
- All Implemented Interfaces:
JsonSerialization
-
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.license()Returns the value of thelicenserecord component.title()Returns the value of thetitlerecord component.toJson()final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Info
Creates an instance of aInforecord class.- Parameters:
title- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentlicense- the value for thelicenserecord componentversion- the value for theversionrecord component
-
-
Method Details
-
toJson
- Specified by:
toJsonin interfaceJsonSerialization
-
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). -
title
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
license
-
version
-