Record Class EntityVersionServiceImpl.CommentData

java.lang.Object
java.lang.Record
fr.becpg.repo.entity.version.EntityVersionServiceImpl.CommentData
Enclosing class:
EntityVersionServiceImpl

private static record EntityVersionServiceImpl.CommentData(String title, String content, Date created, String creator, Date modified, org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean branchComment) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    The field for the branchComment record component.
    private final String
    The field for the content record component.
    private final Date
    The field for the created record component.
    private final String
    The field for the creator record component.
    private final Date
    The field for the modified record component.
    private final org.alfresco.service.cmr.repository.NodeRef
    The field for the nodeRef record component.
    private final String
    The field for the title record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • title

      private final String title
      The field for the title record component.
    • content

      private final String content
      The field for the content record component.
    • created

      private final Date created
      The field for the created record component.
    • creator

      private final String 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.
    • branchComment

      private final boolean branchComment
      The field for the branchComment 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

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • content

      public String content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • created

      public Date created()
      Returns the value of the created record component.
      Returns:
      the value of the created record component
    • creator

      public String creator()
      Returns the value of the creator record component.
      Returns:
      the value of the creator record component
    • modified

      public Date 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
    • branchComment

      public boolean branchComment()
      Returns the value of the branchComment record component.
      Returns:
      the value of the branchComment record component