com.atlassian.jira.rest.client.domain
Class Comment
java.lang.Object
com.atlassian.jira.rest.client.domain.Comment
- All Implemented Interfaces:
- AddressableEntity
public class Comment
- extends java.lang.Object
- implements AddressableEntity
A JIRA comment
- Since:
- v0.1
|
Constructor Summary |
Comment(java.net.URI self,
java.lang.String body,
BasicUser author,
BasicUser updateAuthor,
org.joda.time.DateTime creationDate,
org.joda.time.DateTime updateDate,
Visibility visibility)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Comment
public Comment(java.net.URI self,
java.lang.String body,
@Nullable
BasicUser author,
@Nullable
BasicUser updateAuthor,
org.joda.time.DateTime creationDate,
org.joda.time.DateTime updateDate,
Visibility visibility)
valueOf
public static Comment valueOf(java.lang.String body)
createWithRoleLevel
public static Comment createWithRoleLevel(java.lang.String body,
java.lang.String roleLevel)
createWithGroupLevel
public static Comment createWithGroupLevel(java.lang.String body,
java.lang.String groupLevel)
wasUpdated
public boolean wasUpdated()
getBody
public java.lang.String getBody()
getSelf
public java.net.URI getSelf()
- Specified by:
getSelf in interface AddressableEntity
- Returns:
- URI to this resource or (usually) its complete version - when partial representation
is embedded in other resources
getAuthor
@Nullable
public BasicUser getAuthor()
getUpdateAuthor
@Nullable
public BasicUser getUpdateAuthor()
getCreationDate
public org.joda.time.DateTime getCreationDate()
getUpdateDate
public org.joda.time.DateTime getUpdateDate()
getVisibility
@Nullable
public Visibility getVisibility()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.