Record Class ClassificationResult

Object
Record
akka.javasdk.agent.ClassificationResult
Record Components:
classificationId - the id of the record of the classification in the ledger, or empty when the ledger is disabled. Pass it to LedgerClient.getClassification(String) to fetch the record.
classification - the classification that the classifier produced

public record ClassificationResult(Optional<String> classificationId, Classification classification) extends Record
The result of a ClassifierClient call: the classification and the id of its record in the ledger.
  • Constructor Details

    • ClassificationResult

      public ClassificationResult(Optional<String> classificationId, Classification classification)
      Creates an instance of a ClassificationResult record class.
      Parameters:
      classificationId - the value for the classificationId record component
      classification - the value for the classification 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. 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.
    • classificationId

      public Optional<String> classificationId()
      Returns the value of the classificationId record component.
      Returns:
      the value of the classificationId record component
    • classification

      public Classification classification()
      Returns the value of the classification record component.
      Returns:
      the value of the classification record component