Package com.google.gerrit.entities
Class PatchSet.Id
- java.lang.Object
-
- com.google.gerrit.entities.PatchSet.Id
-
- All Implemented Interfaces:
Comparable<PatchSet.Id>
- Enclosing class:
- PatchSet
public abstract static class PatchSet.Id extends Object implements Comparable<PatchSet.Id>
-
-
Constructor Summary
Constructors Constructor Description Id()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Change.Id
changeId()
int
compareTo(PatchSet.Id other)
static PatchSet.Id
fromEditRef(String ref)
Parse a PatchSet.Id from an edit ref.static PatchSet.Id
fromRef(String ref)
Parse a PatchSet.Id from aPatchSet.refName()
result.int
get()
String
getCommaSeparatedChangeAndPatchSetId()
String
getId()
static PatchSet.Id
parse(String str)
Parse a PatchSet.Id out of a string representation.static String
toId(int number)
String
toRefName()
String
toString()
-
-
-
Method Detail
-
parse
public static PatchSet.Id parse(String str)
Parse a PatchSet.Id out of a string representation.
-
fromRef
public static PatchSet.Id fromRef(String ref)
Parse a PatchSet.Id from aPatchSet.refName()
result.
-
fromEditRef
public static PatchSet.Id fromEditRef(String ref)
Parse a PatchSet.Id from an edit ref.
-
toId
public static String toId(int number)
-
getId
public String getId()
-
changeId
public abstract Change.Id changeId()
-
get
public int get()
-
getCommaSeparatedChangeAndPatchSetId
public String getCommaSeparatedChangeAndPatchSetId()
-
toRefName
public String toRefName()
-
compareTo
public int compareTo(PatchSet.Id other)
- Specified by:
compareTo
in interfaceComparable<PatchSet.Id>
-
-