Record Class LabelEstimator.Outcome
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.label.LabelEstimator.Outcome
- Enclosing class:
LabelEstimator
public static record LabelEstimator.Outcome(int labelled, int unclear, int skipped, String error, boolean cancelled)
extends Record
What a run did.
error is empty when it ran to its end (or was cancelled).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecancelledrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.intlabelled()Returns the value of thelabelledrecord component.intskipped()Returns the value of theskippedrecord component.summary(int total) One sentence for the user.final StringtoString()Returns a string representation of this record class.intunclear()Returns the value of theunclearrecord component.
-
Constructor Details
-
Outcome
Creates an instance of aOutcomerecord class.- Parameters:
labelled- the value for thelabelledrecord componentunclear- the value for theunclearrecord componentskipped- the value for theskippedrecord componenterror- the value for theerrorrecord componentcancelled- the value for thecancelledrecord component
-
-
Method Details
-
summary
One sentence for the user. -
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 '=='. -
labelled
public int labelled()Returns the value of thelabelledrecord component.- Returns:
- the value of the
labelledrecord component
-
unclear
public int unclear()Returns the value of theunclearrecord component.- Returns:
- the value of the
unclearrecord component
-
skipped
public int skipped()Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
cancelled
public boolean cancelled()Returns the value of thecancelledrecord component.- Returns:
- the value of the
cancelledrecord component
-