Field Summary
Fields
private final boolean
The field for the branchComment record component.
The field for the content record component.
The field for the created record component.
The field for the creator record component.
The field for the modified record component.
private final org.alfresco.service.cmr.repository.NodeRef
The field for the nodeRef record component.
The field for the title record component.
Constructor Summary
Constructors
private
Creates an instance of a CommentData record class.
Method Summary
All Methods Instance Methods Concrete Methods
boolean
Returns the value of the branchComment record component.
Returns the value of the content record component.
Returns the value of the created record component.
Returns the value of the creator record component.
final boolean
Indicates whether some other object is "equal to" this one.
final int
Returns a hash code value for this object.
Returns the value of the modified record component.
org.alfresco.service.cmr.repository.NodeRef
Returns the value of the nodeRef record component.
Returns the value of the title record component.
Returns a string representation of this record class.
Field Details
title
The field for the title record component.
content
The field for the content record component.
created
private final Date created
The field for the created record component.
creator
The field for the creator record component.
modified
private final Date modified
The field for the modified record component.
nodeRef
private final org.alfresco.service.cmr.repository.NodeRef nodeRef
The field for the nodeRef record component.
Constructor Details
CommentData
private CommentData (String title,
String content,
Date created,
String creator,
Date modified,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean branchComment)
Creates an instance of a CommentData record class.
Parameters:
title - the value for the title record component
content - the value for the content record component
created - the value for the created record component
creator - the value for the creator record component
modified - the value for the modified record component
nodeRef - the value for the nodeRef record component
branchComment - the value for the branchComment record component
Method Details
toString
public final String 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.
Specified by:
toString in class Record
Returns:
a string representation of this object
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.
Specified by:
hashCode in class Record
Returns:
a hash code value for this object
equals
public final boolean equals (Object o)
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 with
Objects::equals(Object,Object); primitive components are compared with '=='.
Specified by:
equals in class Record
Parameters:
o - the object with which to compare
Returns:
true if this object is the same as the o argument; false otherwise.
title
Returns the value of the title record component.
Returns:
the value of the title record component
content
Returns the value of the content record component.
Returns:
the value of the content record component
created
Returns the value of the created record component.
Returns:
the value of the created record component
creator
Returns the value of the creator record component.
Returns:
the value of the creator record component
modified
Returns the value of the modified record component.
Returns:
the value of the modified record component
nodeRef
public org.alfresco.service.cmr.repository.NodeRef nodeRef ()
Returns the value of the nodeRef record component.
Returns:
the value of the nodeRef record component