java.lang.Object
com.atlassian.jira.rest.client.api.domain.Comment
All Implemented Interfaces:
AddressableEntity

public class Comment extends Object implements AddressableEntity
A JIRA comment
Since:
v0.1
  • Constructor Details

    • Comment

      public Comment(URI self, String body, @Nullable BasicUser author, @Nullable BasicUser updateAuthor, org.joda.time.DateTime creationDate, org.joda.time.DateTime updateDate, Visibility visibility, @Nullable Long id)
  • Method Details

    • valueOf

      public static Comment valueOf(String body)
    • createWithRoleLevel

      public static Comment createWithRoleLevel(String body, String roleLevel)
    • createWithGroupLevel

      public static Comment createWithGroupLevel(String body, String groupLevel)
    • wasUpdated

      public boolean wasUpdated()
    • getBody

      public String getBody()
    • getId

      @Nullable public Long getId()
    • getSelf

      public 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 String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object