Record Class Metadata
java.lang.Object
java.lang.Record
cloud.quinimbus.persistence.api.schema.Metadata
- All Implemented Interfaces:
MetadataBuilder.With
public record Metadata(String id, Long version, Instant creationTime, Set<Metadata.MigrationRun> entityTypeMigrationRuns)
extends Record
implements MetadataBuilder.With
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreationTime
record component.Returns the value of theentityTypeMigrationRuns
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface cloud.quinimbus.persistence.api.schema.MetadataBuilder.With
with, with, withCreationTime, withEntityTypeMigrationRuns, withId, withVersion
-
Constructor Details
-
Metadata
public Metadata(String id, Long version, Instant creationTime, Set<Metadata.MigrationRun> entityTypeMigrationRuns) Creates an instance of aMetadata
record class.- Parameters:
id
- the value for theid
record componentversion
- the value for theversion
record componentcreationTime
- the value for thecreationTime
record componententityTypeMigrationRuns
- the value for theentityTypeMigrationRuns
record 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)
. -
id
Returns the value of theid
record component.- Specified by:
id
in interfaceMetadataBuilder.With
- Returns:
- the value of the
id
record component
-
version
Returns the value of theversion
record component.- Specified by:
version
in interfaceMetadataBuilder.With
- Returns:
- the value of the
version
record component
-
creationTime
Returns the value of thecreationTime
record component.- Specified by:
creationTime
in interfaceMetadataBuilder.With
- Returns:
- the value of the
creationTime
record component
-
entityTypeMigrationRuns
Returns the value of theentityTypeMigrationRuns
record component.- Specified by:
entityTypeMigrationRuns
in interfaceMetadataBuilder.With
- Returns:
- the value of the
entityTypeMigrationRuns
record component
-