Class RevId
- java.lang.Object
-
- com.google.gerrit.reviewdb.client.RevId
-
public final class RevId extends Object
A revision identifier for a file or a change.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ABBREV_LEN
protected String
id
static int
LEN
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
get()
int
hashCode()
boolean
isComplete()
boolean
matches(String str)
RevId
max()
String
toString()
-
-
-
Field Detail
-
ABBREV_LEN
public static final int ABBREV_LEN
- See Also:
- Constant Field Values
-
LEN
public static final int LEN
- See Also:
- Constant Field Values
-
id
protected String id
-
-
Constructor Detail
-
RevId
protected RevId()
-
RevId
public RevId(String str)
-
-
Method Detail
-
get
public String get()
- Returns:
- the value of this revision id.
-
isComplete
public boolean isComplete()
- Returns:
- true if this revision id has all required digits.
-
max
public RevId max()
- Returns:
- if
isComplete()
,this
; otherwise a new RevId with 'z' appended on the end.
-
matches
public boolean matches(String str)
-
-