java.lang.Object
java.lang.Record
org.odpi.openmetadata.adapters.connectors.integration.bitol.contractevaluator.ContractFinding
Record Components:
kind - what sort of finding this is
subject - name of the schema object, property or quality rule that was checked
message - description of what was found

public record ContractFinding(ContractFinding.Kind kind, String subject, String message) extends Record
ContractFinding is one result from checking an asset against its contract.
  • Constructor Details

    • ContractFinding

      public ContractFinding(ContractFinding.Kind kind, String subject, String message)
      Creates an instance of a ContractFinding record class.
      Parameters:
      kind - the value for the kind record component
      subject - the value for the subject record component
      message - the value for the message record component
  • Method Details

    • toString

      public String toString()
      Describe the finding in one line.
      Specified by:
      toString in class Record
      Returns:
      text
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • kind

      public ContractFinding.Kind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • subject

      public String subject()
      Returns the value of the subject record component.
      Returns:
      the value of the subject record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component