public class Comment extends java.lang.Object implements AddressableEntity
Constructor and Description |
---|
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,
java.lang.Long id) |
Modifier and Type | Method and Description |
---|---|
static Comment |
createWithGroupLevel(java.lang.String body,
java.lang.String groupLevel) |
static Comment |
createWithRoleLevel(java.lang.String body,
java.lang.String roleLevel) |
boolean |
equals(java.lang.Object obj) |
BasicUser |
getAuthor() |
java.lang.String |
getBody() |
org.joda.time.DateTime |
getCreationDate() |
java.lang.Long |
getId() |
java.net.URI |
getSelf() |
BasicUser |
getUpdateAuthor() |
org.joda.time.DateTime |
getUpdateDate() |
Visibility |
getVisibility() |
int |
hashCode() |
java.lang.String |
toString() |
static Comment |
valueOf(java.lang.String body) |
boolean |
wasUpdated() |
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, @Nullable java.lang.Long id)
public static Comment valueOf(java.lang.String body)
public static Comment createWithRoleLevel(java.lang.String body, java.lang.String roleLevel)
public static Comment createWithGroupLevel(java.lang.String body, java.lang.String groupLevel)
public boolean wasUpdated()
public java.lang.String getBody()
@Nullable public java.lang.Long getId()
public java.net.URI getSelf()
getSelf
in interface AddressableEntity
@Nullable public BasicUser getAuthor()
@Nullable public BasicUser getUpdateAuthor()
public org.joda.time.DateTime getCreationDate()
public org.joda.time.DateTime getUpdateDate()
@Nullable public Visibility getVisibility()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2013 Atlassian. All Rights Reserved.