Record Class StreamFlattenMetrics.ComputationMetric
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.bulk.introspection.StreamFlattenMetrics.ComputationMetric
- Enclosing class:
- StreamFlattenMetrics
public static record StreamFlattenMetrics.ComputationMetric(@Nullable StreamIntrospection.TimerMetric record, @Nullable StreamIntrospection.TimerMetric timer, @Nullable Number failure, @Nullable Number skipped)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionComputationMetric(StreamIntrospection.TimerMetric record, StreamIntrospection.TimerMetric timer, Number failure, Number skipped) Creates an instance of aComputationMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.failure()Returns the value of thefailurerecord component.final inthashCode()Returns a hash code value for this object.record()Returns the value of therecordrecord component.skipped()Returns the value of theskippedrecord component.timer()Returns the value of thetimerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ComputationMetric
public ComputationMetric(@Nullable StreamIntrospection.TimerMetric record, @Nullable StreamIntrospection.TimerMetric timer, @Nullable Number failure, @Nullable Number skipped) Creates an instance of aComputationMetricrecord class.- Parameters:
record- the value for therecordrecord componenttimer- the value for thetimerrecord componentfailure- the value for thefailurerecord componentskipped- the value for theskippedrecord component
-
-
Method Details
-
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). -
record
Returns the value of therecordrecord component.- Returns:
- the value of the
recordrecord component
-
timer
Returns the value of thetimerrecord component.- Returns:
- the value of the
timerrecord component
-
failure
Returns the value of thefailurerecord component.- Returns:
- the value of the
failurerecord component
-
skipped
Returns the value of theskippedrecord component.- Returns:
- the value of the
skippedrecord component
-