Class ImmutableGroup
java.lang.Object
com.atlassian.crowd.embedded.impl.ImmutableGroup
- All Implemented Interfaces:
Group
,Serializable
,Comparable<Group>
A general purpose immutable implementation of the Group interface.
Note: This object does not allow null name.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ImmutableGroup
-
-
Method Details
-
getName
-
compareTo
Description copied from interface:Group
CompareTo must be compatible with the equals() and hashCode() methods- Specified by:
compareTo
in interfaceComparable<Group>
- Specified by:
compareTo
in interfaceGroup
- Parameters:
other
- the object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
equals
Description copied from interface:Group
Implementations must ensure equality based on case-insensitive getName(). -
hashCode
public int hashCode()Description copied from interface:Group
Implementations must produce a hash-code based on case-insensitive getName().
-