Modifier and Type | Class and Description |
---|---|
static class |
PatchLineComment.Key |
static class |
PatchLineComment.Status |
Modifier and Type | Field and Description |
---|---|
protected Account.Id |
author
Who wrote this comment.
|
protected PatchLineComment.Key |
key |
protected int |
lineNbr
Line number this comment applies to; it should display after the line.
|
protected java.lang.String |
message
The text left by the user.
|
protected java.lang.String |
parentUuid
The parent of this comment, or null if this is the first comment on this line
|
protected CommentRange |
range |
protected Account.Id |
realAuthor
Real user that added this comment on behalf of the user recorded in
author . |
protected RevId |
revId
The RevId for the commit to which this comment is referring.
|
protected short |
side
Which file is this comment; 0 is ancestor, 1 is new version.
|
protected char |
status
Current publication state of the comment; see
PatchLineComment.Status . |
static char |
STATUS_DRAFT |
static char |
STATUS_PUBLISHED |
protected java.lang.String |
tag |
protected boolean |
unresolved
True if this comment requires further action.
|
protected java.sql.Timestamp |
writtenOn
When this comment was drafted.
|
Modifier | Constructor and Description |
---|---|
protected |
PatchLineComment() |
|
PatchLineComment(PatchLineComment.Key id,
int line,
Account.Id a,
java.lang.String parentUuid,
java.sql.Timestamp when) |
|
PatchLineComment(PatchLineComment o) |
Modifier and Type | Method and Description |
---|---|
Comment |
asComment(java.lang.String serverId) |
boolean |
equals(java.lang.Object o) |
static PatchLineComment |
from(Change.Id changeId,
PatchLineComment.Status status,
Comment c) |
Account.Id |
getAuthor() |
PatchLineComment.Key |
getKey() |
int |
getLine() |
java.lang.String |
getMessage() |
java.lang.String |
getParentUuid() |
PatchSet.Id |
getPatchSetId() |
CommentRange |
getRange() |
Account.Id |
getRealAuthor() |
RevId |
getRevId() |
short |
getSide() |
PatchLineComment.Status |
getStatus() |
java.lang.String |
getTag() |
java.lang.Boolean |
getUnresolved() |
java.sql.Timestamp |
getWrittenOn() |
int |
hashCode() |
void |
setLine(int line) |
void |
setMessage(java.lang.String s) |
void |
setParentUuid(java.lang.String inReplyTo) |
void |
setRange(Comment.Range r) |
void |
setRange(CommentRange r) |
void |
setRealAuthor(Account.Id id) |
void |
setRevId(RevId rev) |
void |
setSide(short s) |
void |
setStatus(PatchLineComment.Status s) |
void |
setTag(java.lang.String tag) |
void |
setUnresolved(java.lang.Boolean unresolved) |
void |
setWrittenOn(java.sql.Timestamp ts) |
java.lang.String |
toString() |
public static final char STATUS_DRAFT
public static final char STATUS_PUBLISHED
protected PatchLineComment.Key key
protected int lineNbr
protected Account.Id author
protected java.sql.Timestamp writtenOn
protected char status
PatchLineComment.Status
.protected short side
protected java.lang.String message
protected java.lang.String parentUuid
protected CommentRange range
protected java.lang.String tag
protected Account.Id realAuthor
author
.protected boolean unresolved
protected RevId revId
protected PatchLineComment()
public PatchLineComment(PatchLineComment.Key id, int line, Account.Id a, java.lang.String parentUuid, java.sql.Timestamp when)
public PatchLineComment(PatchLineComment o)
public static PatchLineComment from(Change.Id changeId, PatchLineComment.Status status, Comment c)
public PatchLineComment.Key getKey()
public PatchSet.Id getPatchSetId()
public int getLine()
public void setLine(int line)
public Account.Id getAuthor()
public Account.Id getRealAuthor()
public void setRealAuthor(Account.Id id)
public java.sql.Timestamp getWrittenOn()
public PatchLineComment.Status getStatus()
public void setStatus(PatchLineComment.Status s)
public short getSide()
public void setSide(short s)
public java.lang.String getMessage()
public void setMessage(java.lang.String s)
public void setWrittenOn(java.sql.Timestamp ts)
public java.lang.String getParentUuid()
public void setParentUuid(java.lang.String inReplyTo)
public void setRange(Comment.Range r)
public void setRange(CommentRange r)
public CommentRange getRange()
public void setRevId(RevId rev)
public RevId getRevId()
public void setTag(java.lang.String tag)
public java.lang.String getTag()
public void setUnresolved(java.lang.Boolean unresolved)
public java.lang.Boolean getUnresolved()
public Comment asComment(java.lang.String serverId)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object