java.lang.Object
com.aoindustries.aoserv.client.linux.Group.Name
- All Implemented Interfaces:
DtoFactory<LinuxGroupName>
,Internable<Group.Name>
,Serializable
,Comparable<Group.Name>
- Enclosing class:
Group
public static final class Group.Name
extends Object
implements Comparable<Group.Name>, Serializable, DtoFactory<LinuxGroupName>, Internable<Group.Name>
Represents a group ID that may be used by certain types of groups. Group ids must:
- Be non-null
- Be non-empty
- Be between 1 and 32 characters
- Must start with
[a-z]
- Uses only ASCII 0x21 through 0x7f, excluding
space , : ( ) [ ] ' " | & ; A-Z \ / @
- TODO: May only end on "$"?
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(Group.Name other) boolean
getDto()
int
hashCode()
intern()
Interns this name much in the same fashion asString.intern()
.toString()
static ValidationResult
Validates a group name.static Group.Name
-
Field Details
-
MAX_LENGTH
public static final int MAX_LENGTH- See Also:
-
-
Method Details
-
validate
Validates a group name. -
valueOf
- Parameters:
name
- whennull
, returnsnull
- Throws:
ValidationException
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Group.Name>
-
toString
-
intern
Interns this name much in the same fashion asString.intern()
.- Specified by:
intern
in interfaceInternable<Group.Name>
- See Also:
-
getDto
- Specified by:
getDto
in interfaceDtoFactory<LinuxGroupName>
-