Record Class ValidationResult.Divergence
java.lang.Object
java.lang.Record
com.tnsai.quality.validation.parallel.ValidationResult.Divergence
- Enclosing class:
ValidationResult
public static record ValidationResult.Divergence(String topic, Map<String,String> agentPositions, String severity)
extends Record
Represents a point where agents diverge.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentPositionsrecord component.final booleanIndicates whether some other object is "equal to" this one.intfinal inthashCode()Returns a hash code value for this object.severity()Returns the value of theseverityrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Divergence
-
Divergence
Creates an instance of aDivergencerecord class.- Parameters:
topic- the value for thetopicrecord componentagentPositions- the value for theagentPositionsrecord componentseverity- the value for theseverityrecord component
-
-
Method Details
-
getAgentCount
public int getAgentCount() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
agentPositions
Returns the value of theagentPositionsrecord component.- Returns:
- the value of the
agentPositionsrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-