Record Class GetModelMigrationsResult.Metric
java.lang.Object
java.lang.Record
io.fluxzero.common.api.search.GetModelMigrationsResult.Metric
- Enclosing class:
GetModelMigrationsResult
public static record GetModelMigrationsResult.Metric(long timestamp, int migrationCount)
extends Record
Content-free metrics representation.
-
Constructor Summary
ConstructorsConstructorDescriptionMetric(long timestamp, int migrationCount) 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 themigrationCountrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Metric
public Metric(long timestamp, int migrationCount) Creates an instance of aMetricrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentmigrationCount- the value for themigrationCountrecord 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. -
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
migrationCount
public int migrationCount()Returns the value of themigrationCountrecord component.- Returns:
- the value of the
migrationCountrecord component
-