Package com.google.gerrit.entities
Class GroupReference
java.lang.Object
com.google.gerrit.entities.GroupReference
- All Implemented Interfaces:
Comparable<GroupReference>
Describes a group within a projects
AccessSection
s.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
static GroupReference
create
(AccountGroup.UUID uuid, String name) Create a group reference.static GroupReference
Create a group reference where the group's name couldn't be resolved.final boolean
static String
extractGroupName
(String configValue) static GroupReference
forGroup
(GroupDescription.Basic group) abstract String
getName()
abstract AccountGroup.UUID
getUUID()
int
hashCode()
static boolean
isGroupReference
(String configValue) final String
toString()
-
Constructor Details
-
GroupReference
public GroupReference()
-
-
Method Details
-
forGroup
-
isGroupReference
-
extractGroupName
-
getUUID
-
getName
-
create
Create a group reference.- Parameters:
uuid
- UUID of the group, must not benull
name
- the group name, must not benull
-
create
Create a group reference where the group's name couldn't be resolved.- Parameters:
name
- the group name, must not benull
-
compareTo
- Specified by:
compareTo
in interfaceComparable<GroupReference>
-
hashCode
@Memoized public int hashCode() -
equals
-
toString
-
toConfigValue
-