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
Fields -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(Group.Name other) booleangetDto()inthashCode()intern()Interns this name much in the same fashion asString.intern().toString()static ValidationResultValidates 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:
compareToin interfaceComparable<Group.Name>
-
toString
-
intern
Interns this name much in the same fashion asString.intern().- Specified by:
internin interfaceInternable<Group.Name>- See Also:
-
getDto
- Specified by:
getDtoin interfaceDtoFactory<LinuxGroupName>
-
