Record Class DocumentVersionModel
java.lang.Object
java.lang.Record
org.exoplatform.documents.mcp.model.DocumentVersionModel
public record DocumentVersionModel(String id, int versionNumber, String title, String summary, String author, String authorFullName, String createdDate, boolean current, long size)
extends Record
A single version entry of a versioned document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.Returns the value of theauthorFullNamerecord component.Returns the value of thecreatedDaterecord component.booleancurrent()Returns the value of thecurrentrecord 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.longsize()Returns the value of thesizerecord component.summary()Returns the value of thesummaryrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theversionNumberrecord component.
-
Constructor Details
-
DocumentVersionModel
public DocumentVersionModel(String id, int versionNumber, String title, String summary, String author, String authorFullName, String createdDate, boolean current, long size) Creates an instance of aDocumentVersionModelrecord class.- Parameters:
id- the value for theidrecord componentversionNumber- the value for theversionNumberrecord componenttitle- the value for thetitlerecord componentsummary- the value for thesummaryrecord componentauthor- the value for theauthorrecord componentauthorFullName- the value for theauthorFullNamerecord componentcreatedDate- the value for thecreatedDaterecord componentcurrent- the value for thecurrentrecord componentsize- the value for thesizerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
versionNumber
public int versionNumber()Returns the value of theversionNumberrecord component.- Returns:
- the value of the
versionNumberrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
authorFullName
Returns the value of theauthorFullNamerecord component.- Returns:
- the value of the
authorFullNamerecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
current
public boolean current()Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-