java.lang.Object
com.aoapps.web.resources.registry.Group.Name
- All Implemented Interfaces:
Serializable
,Comparable<Group.Name>
- Enclosing class:
Group
A valid group name.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Name
- Throws:
IllegalArgumentException
-
-
Method Details
-
validate
Validates aGroup
name.- Parameters:
name
- Group names may not be empty and may not contain commas or spaces.- Returns:
- A message of why invalid or
null
when valid. - See Also:
-
checkName
Checks a group name.- Returns:
- the group name when valid
- Throws:
IllegalArgumentException
- when the group name is invalid
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Group.Name>
-
toString
-