Package com.google.gerrit.entities
Class AccountGroup.UUID
- java.lang.Object
-
- com.google.gerrit.entities.AccountGroup.UUID
-
- All Implemented Interfaces:
Comparable<AccountGroup.UUID>
- Enclosing class:
- AccountGroup
public abstract static class AccountGroup.UUID extends Object implements Comparable<AccountGroup.UUID>
Globally unique identifier.
-
-
Constructor Summary
Constructors Constructor Description UUID()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AccountGroup.UUID o)
static AccountGroup.UUID
fromRef(String ref)
Parse anAccountGroup.UUID
out of a ref-name.static AccountGroup.UUID
fromRefPart(String refPart)
Parse anAccountGroup.UUID
out of a part of a ref-name.String
get()
static AccountGroup.UUID
parse(String str)
Parse anAccountGroup.UUID
out of a string representation.String
toString()
-
-
-
Method Detail
-
get
public String get()
-
parse
public static AccountGroup.UUID parse(String str)
Parse anAccountGroup.UUID
out of a string representation.
-
fromRef
public static AccountGroup.UUID fromRef(String ref)
Parse anAccountGroup.UUID
out of a ref-name.
-
fromRefPart
public static AccountGroup.UUID fromRefPart(String refPart)
Parse anAccountGroup.UUID
out of a part of a ref-name.- Parameters:
refPart
- a ref name with the following syntax:"12/1234..."
. We assume that the caller has trimmed any prefix.
-
compareTo
public final int compareTo(AccountGroup.UUID o)
- Specified by:
compareTo
in interfaceComparable<AccountGroup.UUID>
-
-