Class PatchSet
- java.lang.Object
-
- com.google.gerrit.reviewdb.client.PatchSet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PatchSet.Id
-
Field Summary
Fields Modifier and Type Field Description protected Timestamp
createdOn
When this patch set was first introduced onto the change.protected String
description
Optional user-supplied description for this patch set.protected String
groups
Opaque group identifier, usually assigned during creation.protected PatchSet.Id
id
protected String
pushCertificate
Certificate sent with a push that created this patch set.protected RevId
revision
protected Account.Id
uploader
-
Constructor Summary
Constructors Modifier Constructor Description protected
PatchSet()
PatchSet(PatchSet src)
PatchSet(PatchSet.Id k)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
Timestamp
getCreatedOn()
String
getDescription()
List<String>
getGroups()
PatchSet.Id
getId()
int
getPatchSetId()
String
getPushCertificate()
String
getRefName()
RevId
getRevision()
Account.Id
getUploader()
int
hashCode()
static PatchSet.Id
id(Change.Id changeId, int id)
static boolean
isChangeRef(String name)
Is the reference name a change reference?static boolean
isRef(String name)
Deprecated.use isChangeRef instead.static String
joinGroups(List<String> groups)
void
setCreatedOn(Timestamp ts)
void
setDescription(String description)
void
setGroups(List<String> groups)
void
setPushCertificate(String cert)
void
setRevision(RevId i)
void
setUploader(Account.Id who)
static List<String>
splitGroups(String joinedGroups)
String
toString()
-
-
-
Field Detail
-
id
protected PatchSet.Id id
-
revision
protected RevId revision
-
uploader
protected Account.Id uploader
-
createdOn
protected Timestamp createdOn
When this patch set was first introduced onto the change.
-
groups
protected String groups
Opaque group identifier, usually assigned during creation.This field is actually a comma-separated list of values, as in rare cases involving merge commits a patch set may belong to multiple groups.
Changes on the same branch having patch sets with intersecting groups are considered related, as in the "Related Changes" tab.
-
pushCertificate
protected String pushCertificate
Certificate sent with a push that created this patch set.
-
description
protected String description
Optional user-supplied description for this patch set.When this field is null, the description was never set on the patch set. When this field is an empty string, the description was set and later cleared.
-
-
Constructor Detail
-
PatchSet
protected PatchSet()
-
PatchSet
public PatchSet(PatchSet.Id k)
-
PatchSet
public PatchSet(PatchSet src)
-
-
Method Detail
-
isChangeRef
public static boolean isChangeRef(String name)
Is the reference name a change reference?
-
isRef
@Deprecated public static boolean isRef(String name)
Deprecated.use isChangeRef instead.Is the reference name a change reference?
-
id
public static PatchSet.Id id(Change.Id changeId, int id)
-
getId
public PatchSet.Id getId()
-
getPatchSetId
public int getPatchSetId()
-
getRevision
public RevId getRevision()
-
setRevision
public void setRevision(RevId i)
-
getUploader
public Account.Id getUploader()
-
setUploader
public void setUploader(Account.Id who)
-
getCreatedOn
public Timestamp getCreatedOn()
-
setCreatedOn
public void setCreatedOn(Timestamp ts)
-
getRefName
public String getRefName()
-
getPushCertificate
public String getPushCertificate()
-
setPushCertificate
public void setPushCertificate(String cert)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
-