Record Class GetModelMigrationResult.Metric
java.lang.Object
java.lang.Record
io.fluxzero.common.api.search.GetModelMigrationResult.Metric
- Enclosing class:
GetModelMigrationResult
public static record GetModelMigrationResult.Metric(long timestamp, boolean productionDocumentPresent, boolean migrationPresent, boolean migratedDocumentPresent)
extends Record
Content-free metrics representation.
-
Constructor Summary
ConstructorsConstructorDescriptionMetric(long timestamp, boolean productionDocumentPresent, boolean migrationPresent, boolean migratedDocumentPresent) 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.booleanReturns the value of themigratedDocumentPresentrecord component.booleanReturns the value of themigrationPresentrecord component.booleanReturns the value of theproductionDocumentPresentrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Metric
public Metric(long timestamp, boolean productionDocumentPresent, boolean migrationPresent, boolean migratedDocumentPresent) Creates an instance of aMetricrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentproductionDocumentPresent- the value for theproductionDocumentPresentrecord componentmigrationPresent- the value for themigrationPresentrecord componentmigratedDocumentPresent- the value for themigratedDocumentPresentrecord 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
-
productionDocumentPresent
public boolean productionDocumentPresent()Returns the value of theproductionDocumentPresentrecord component.- Returns:
- the value of the
productionDocumentPresentrecord component
-
migrationPresent
public boolean migrationPresent()Returns the value of themigrationPresentrecord component.- Returns:
- the value of the
migrationPresentrecord component
-
migratedDocumentPresent
public boolean migratedDocumentPresent()Returns the value of themigratedDocumentPresentrecord component.- Returns:
- the value of the
migratedDocumentPresentrecord component
-