public final class DocComment extends Object implements com.aspose.ms.System.IEquatable<DocComment>
Represents comment in DocFormat
.
Constructor and Description |
---|
DocComment()
Initializes a new instance of the
DocComment class. |
DocComment(int id,
String author,
String initials,
String text,
Date createdDate)
Initializes a new instance of the
DocComment class. |
DocComment(String author,
String initials,
Date createdDate)
Initializes a new instance of the
DocComment class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(DocComment other)
Indicates whether the current object is equal to another object of the same type.
|
boolean |
equals(Object obj)
Determines whether the specified
System.Object is equal to this instance. |
String |
getAuthor()
Gets the author.
|
Date |
getCreatedDate()
Gets comment's created date.
|
int |
getId()
Gets comment's id.
|
String |
getInitials()
Gets author's initials.
|
String |
getText()
Gets or comment's text.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setAuthor(String value)
Sets the author.
|
void |
setCreatedDate(Date value)
Sets comment's created date.
|
void |
setId(int value)
Sets comment's id.
|
void |
setInitials(String value)
Sets author's initials.
|
void |
setText(String value)
Gets or comment's text.
|
public DocComment()
Initializes a new instance of the DocComment
class.
public DocComment(String author, String initials, Date createdDate)
Initializes a new instance of the DocComment
class.
author
- Comment's author.initials
- Comment's initials.createdDate
- Comment's created date.public DocComment(int id, String author, String initials, String text, Date createdDate)
Initializes a new instance of the DocComment
class.
id
- Comment's id. Use this identifier for updating/delete specific comment.author
- Comment's author.initials
- Comment's initials.text
- Comment's text.createdDate
- Comment's created date.public final int getId()
Gets comment's id. Use this identifier to update or remove comment.
public final void setId(int value)
Sets comment's id. Use this identifier to update or remove comment.
value
- The identifier.public final String getAuthor()
Gets the author.
public final void setAuthor(String value)
Sets the author.
value
- The author.public final String getInitials()
Gets author's initials.
public final void setInitials(String value)
Sets author's initials.
value
- The initials of the author.public final String getText()
Gets or comment's text.
public final void setText(String value)
Gets or comment's text.
public final Date getCreatedDate()
Gets comment's created date.
public final void setCreatedDate(Date value)
Sets comment's created date.
value
- The created date.public final boolean equals(DocComment other)
Indicates whether the current object is equal to another object of the same type.
other
- An object to compare with this object.true
if the current object is equal to the other
parameter; otherwise, false.public boolean equals(Object obj)
Determines whether the specified System.Object
is equal to this instance.
equals
in interface com.aspose.ms.System.IEquatable<DocComment>
equals
in class Object
obj
- The System.Object
to compare with this instance.true
if the specified System.Object
is equal to this instance; otherwise, false
.Copyright © 2018. All rights reserved.