public class GroupReference extends java.lang.Object implements java.lang.Comparable<GroupReference>
AccessSection
s.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
protected java.lang.String |
uuid |
Modifier | Constructor and Description |
---|---|
protected |
GroupReference() |
|
GroupReference(AccountGroup.UUID uuid,
java.lang.String name)
Create a group reference.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GroupReference o) |
boolean |
equals(java.lang.Object o) |
static java.lang.String |
extractGroupName(java.lang.String configValue) |
static GroupReference |
forGroup(GroupDescription.Basic group) |
java.lang.String |
getName() |
AccountGroup.UUID |
getUUID() |
int |
hashCode() |
static boolean |
isGroupReference(java.lang.String configValue) |
void |
setName(java.lang.String newName) |
void |
setUUID(AccountGroup.UUID newUUID) |
java.lang.String |
toConfigValue() |
java.lang.String |
toString() |
protected GroupReference()
public GroupReference(AccountGroup.UUID uuid, java.lang.String name)
uuid
- UUID of the group, may be null
if the group name couldn't be resolvedname
- the group name, must not be null
public static GroupReference forGroup(GroupDescription.Basic group)
public static boolean isGroupReference(java.lang.String configValue)
public static java.lang.String extractGroupName(java.lang.String configValue)
public AccountGroup.UUID getUUID()
public void setUUID(AccountGroup.UUID newUUID)
public java.lang.String getName()
public void setName(java.lang.String newName)
public int compareTo(GroupReference o)
compareTo
in interface java.lang.Comparable<GroupReference>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toConfigValue()
public java.lang.String toString()
toString
in class java.lang.Object