Record Class ScheduleWithParents.Metric
java.lang.Object
java.lang.Record
io.fluxzero.common.api.scheduling.ScheduleWithParents.Metric
- Enclosing class:
ScheduleWithParents
Payload-free operation summary.
-
Constructor Summary
ConstructorsConstructorDescriptionMetric(int size, int parentCount) Creates an instance of aMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theparentCountrecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Metric
public Metric(int size, int parentCount) Creates an instance of aMetricrecord class.- Parameters:
size- the value for thesizerecord componentparentCount- the value for theparentCountrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
parentCount
public int parentCount()Returns the value of theparentCountrecord component.- Returns:
- the value of the
parentCountrecord component
-