Record Class SurveySelector.Candidate<T>
java.lang.Object
java.lang.Record
org.odpi.openmetadata.adapters.connectors.liskov.SurveySelector.Candidate<T>
- Type Parameters:
T- type used to identify the survey- Record Components:
survey- the survey - opaque to the selectorsurveyed- true if the survey has been run against the element beforeannotationTypeCount- number of different types of annotation that the latest completed survey produced; zero if no survey completed
- Enclosing class:
SurveySelector
public static record SurveySelector.Candidate<T>(T survey, boolean surveyed, int annotationTypeCount)
extends Record
A survey that could be run, with what is known of its results for the element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theannotationTypeCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.survey()Returns the value of thesurveyrecord component.booleansurveyed()Returns the value of thesurveyedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Candidate
Creates an instance of aCandidaterecord class.- Parameters:
survey- the value for thesurveyrecord componentsurveyed- the value for thesurveyedrecord componentannotationTypeCount- the value for theannotationTypeCountrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
survey
Returns the value of thesurveyrecord component.- Returns:
- the value of the
surveyrecord component
-
surveyed
public boolean surveyed()Returns the value of thesurveyedrecord component.- Returns:
- the value of the
surveyedrecord component
-
annotationTypeCount
public int annotationTypeCount()Returns the value of theannotationTypeCountrecord component.- Returns:
- the value of the
annotationTypeCountrecord component
-