@ExportedBean(defaultVisibility=999) public class Revision extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
Revision(ObjectId sha1)
Constructor for Revision.
|
Revision(ObjectId sha1,
Collection<Branch> branches)
Constructor for Revision.
|
| Modifier and Type | Method and Description |
|---|---|
Revision |
clone() |
boolean |
containsBranchName(String name)
Returns whether the revision contains the specified branch.
|
boolean |
equals(Object obj) |
Collection<Branch> |
getBranches()
Getter for the field
branches. |
ObjectId |
getSha1()
Getter for the field
sha1. |
String |
getSha1String()
getSha1String.
|
int |
hashCode() |
void |
setBranches(Collection<Branch> branches)
Setter for the field
branches. |
void |
setSha1(ObjectId sha1)
Setter for the field
sha1. |
String |
toString() |
public Revision(ObjectId sha1)
sha1 - a ObjectId object.public Revision(ObjectId sha1, Collection<Branch> branches)
sha1 - a ObjectId object.branches - a Collection object.@Exported(name="SHA1") public String getSha1String()
String object.public void setSha1(ObjectId sha1)
sha1.sha1 - a ObjectId object.@Exported(name="branch") public Collection<Branch> getBranches()
branches.Collection object.public void setBranches(Collection<Branch> branches)
branches.branches - a Collection object.public boolean containsBranchName(String name)
name - the name of the branchCopyright © 2013–2020. All rights reserved.