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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreationTimerecord component.Returns the value of theentityTypeMigrationRunsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.Methods inherited from interface 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 aMetadatarecord class.- Parameters:
id- the value for theidrecord componentversion- the value for theversionrecord componentcreationTime- the value for thecreationTimerecord componententityTypeMigrationRuns- the value for theentityTypeMigrationRunsrecord 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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceMetadataBuilder.With- Returns:
- the value of the
idrecord component
-
version
Returns the value of theversionrecord component.- Specified by:
versionin interfaceMetadataBuilder.With- Returns:
- the value of the
versionrecord component
-
creationTime
Returns the value of thecreationTimerecord component.- Specified by:
creationTimein interfaceMetadataBuilder.With- Returns:
- the value of the
creationTimerecord component
-
entityTypeMigrationRuns
Returns the value of theentityTypeMigrationRunsrecord component.- Specified by:
entityTypeMigrationRunsin interfaceMetadataBuilder.With- Returns:
- the value of the
entityTypeMigrationRunsrecord component
-