Package com.google.gerrit.entities
Class Change.Id
java.lang.Object
com.google.gerrit.entities.Change.Id
- Enclosing class:
- Change
The numeric change ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Change.Id
fromAllUsersRef
(String ref) static Change.Id
fromEditRefPart
(String ref) static Change.Id
static Change.Id
fromRefPart
(String ref) int
get()
final String
toString()
Parse a Change.Id out of a string representation.
-
Constructor Details
-
Id
public Id()
-
-
Method Details
-
tryParse
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.
-
fromRef
-
fromAllUsersRef
-
fromEditRefPart
-
fromRefPart
-
get
public int get() -
toRefPrefix
-
toString
-