Record Class Recommendation
java.lang.Object
java.lang.Record
com.cockroachlabs.crdb.spi.Recommendation
- Record Components:
id- stable recommendation identifiertitle- short summarydetail- human-readable detailsuggestedAction- the concrete action recommended
-
Constructor Summary
ConstructorsConstructorDescriptionRecommendation(String id, String title, String detail, String suggestedAction) Creates an instance of aRecommendationrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thesuggestedActionrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Recommendation
Creates an instance of aRecommendationrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentdetail- the value for thedetailrecord componentsuggestedAction- the value for thesuggestedActionrecord 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). -
id
-
title
-
detail
-
suggestedAction
Returns the value of thesuggestedActionrecord component.- Returns:
- the value of the
suggestedActionrecord component
-