Package com.google.gerrit.entities
Class Change.Id
- java.lang.Object
-
- com.google.gerrit.entities.Change.Id
-
-
Constructor Summary
Constructors Constructor Description Id()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Change.Id
fromAllUsersRef(String ref)
static Change.Id
fromEditRefPart(String ref)
static Change.Id
fromRef(String ref)
static Change.Id
fromRefPart(String ref)
int
get()
String
toRefPrefix()
String
toString()
static Optional<Change.Id>
tryParse(String str)
Parse a Change.Id out of a string representation.
-
-
-
Method Detail
-
tryParse
public static Optional<Change.Id> tryParse(String str)
Parse a Change.Id out of a string representation.- Parameters:
str
- the string to parse- Returns:
- Optional containing the Change.Id, or
Optional.empty()
if str does not represent a valid Change.Id.
-
get
public int get()
-
toRefPrefix
public String toRefPrefix()
-
-