Package com.priint.pubserverapi.document
Record Class DocumentPointer
java.lang.Object
java.lang.Record
com.priint.pubserverapi.document.DocumentPointer
- Record Components:
documentId-tenant-project-
An instance of this class uniquely identifies a document system-wide
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentPointer(DocumentId documentId, String tenant, String project) Creates an instance of aDocumentPointerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.project()Returns the value of theprojectrecord component.tenant()Returns the value of thetenantrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DocumentPointer
Creates an instance of aDocumentPointerrecord class.- Parameters:
documentId- the value for thedocumentIdrecord componenttenant- the value for thetenantrecord componentproject- the value for theprojectrecord 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). -
documentId
Returns the value of thedocumentIdrecord component.- Returns:
- the value of the
documentIdrecord component
-
tenant
Returns the value of thetenantrecord component.- Returns:
- the value of the
tenantrecord component
-
project
Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-