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 selector
surveyed - true if the survey has been run against the element before
annotationTypeCount - 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
    Constructor
    Description
    Candidate(T survey, boolean surveyed, int annotationTypeCount)
    Creates an instance of a Candidate record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the annotationTypeCount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the survey record component.
    boolean
    Returns the value of the surveyed record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Candidate

      public Candidate(T survey, boolean surveyed, int annotationTypeCount)
      Creates an instance of a Candidate record class.
      Parameters:
      survey - the value for the survey record component
      surveyed - the value for the surveyed record component
      annotationTypeCount - the value for the annotationTypeCount record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • survey

      public T survey()
      Returns the value of the survey record component.
      Returns:
      the value of the survey record component
    • surveyed

      public boolean surveyed()
      Returns the value of the surveyed record component.
      Returns:
      the value of the surveyed record component
    • annotationTypeCount

      public int annotationTypeCount()
      Returns the value of the annotationTypeCount record component.
      Returns:
      the value of the annotationTypeCount record component