Package org.ehrbase.api.dto
Record Class VersionedCompositionDto
java.lang.Object
java.lang.Record
org.ehrbase.api.dto.VersionedCompositionDto
public record VersionedCompositionDto(com.nedap.archie.rm.support.identification.HierObjectId uid, com.nedap.archie.rm.support.identification.ObjectRef<? extends com.nedap.archie.rm.support.identification.ObjectId> ownerId, String timeCreated)
extends Record
Response data of a
VERSIONED_COMPOSITION.-
Constructor Summary
ConstructorsConstructorDescriptionVersionedCompositionDto(com.nedap.archie.rm.support.identification.HierObjectId uid, com.nedap.archie.rm.support.identification.ObjectRef<? extends com.nedap.archie.rm.support.identification.ObjectId> ownerId, String timeCreated) Creates an instance of aVersionedCompositionDtorecord 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.com.nedap.archie.rm.support.identification.ObjectRef<? extends com.nedap.archie.rm.support.identification.ObjectId> ownerId()Returns the value of theownerIdrecord component.Returns the value of thetimeCreatedrecord component.final StringtoString()Returns a string representation of this record class.type()com.nedap.archie.rm.support.identification.HierObjectIduid()Returns the value of theuidrecord component.
-
Constructor Details
-
VersionedCompositionDto
public VersionedCompositionDto(com.nedap.archie.rm.support.identification.HierObjectId uid, com.nedap.archie.rm.support.identification.ObjectRef<? extends com.nedap.archie.rm.support.identification.ObjectId> ownerId, String timeCreated) Creates an instance of aVersionedCompositionDtorecord class.- Parameters:
uid- the value for theuidrecord componentownerId- the value for theownerIdrecord componenttimeCreated- the value for thetimeCreatedrecord component
-
-
Method Details
-
type
-
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). -
uid
public com.nedap.archie.rm.support.identification.HierObjectId uid()Returns the value of theuidrecord component.- Returns:
- the value of the
uidrecord component
-
ownerId
public com.nedap.archie.rm.support.identification.ObjectRef<? extends com.nedap.archie.rm.support.identification.ObjectId> ownerId()Returns the value of theownerIdrecord component.- Returns:
- the value of the
ownerIdrecord component
-
timeCreated
Returns the value of thetimeCreatedrecord component.- Returns:
- the value of the
timeCreatedrecord component
-