Record Class Schema
java.lang.Object
java.lang.Record
cloud.quinimbus.persistence.api.schema.Schema
- All Implemented Interfaces:
SchemaBuilder.With
public record Schema(String id, Map<String, EntityType> entityTypes, Long version)
extends Record
implements SchemaBuilder.With
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityTypesrecord 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cloud.quinimbus.persistence.api.schema.SchemaBuilder.With
with, with, withEntityTypes, withId, withVersion
-
Constructor Details
-
Schema
Creates an instance of aSchemarecord class.- Parameters:
id- the value for theidrecord componententityTypes- the value for theentityTypesrecord componentversion- the value for theversionrecord 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 interfaceSchemaBuilder.With- Returns:
- the value of the
idrecord component
-
entityTypes
Returns the value of theentityTypesrecord component.- Specified by:
entityTypesin interfaceSchemaBuilder.With- Returns:
- the value of the
entityTypesrecord component
-
version
Returns the value of theversionrecord component.- Specified by:
versionin interfaceSchemaBuilder.With- Returns:
- the value of the
versionrecord component
-