Class DelegatingGroupWithAttributes
java.lang.Object
com.atlassian.crowd.embedded.impl.AbstractDelegatingEntityWithAttributes
com.atlassian.crowd.embedded.impl.DelegatingGroupWithAttributes
- All Implemented Interfaces:
Attributes,Group,GroupWithAttributes,Comparable<Group>
public class DelegatingGroupWithAttributes
extends AbstractDelegatingEntityWithAttributes
implements GroupWithAttributes
Implementation of GroupWithAttributes that simply delegates to an underlying Group and Attributes object.
Instances of this class will be effectively immutable so long as either:
- It is constructed with immutable objects
- Or, the mutable objects it is constructed with are not "leaked".
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.atlassian.crowd.embedded.impl.AbstractDelegatingEntityWithAttributes
getKeys, getValue, getValues, isEmptyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.crowd.embedded.api.Attributes
getKeys, getValue, getValues, isEmpty
-
Constructor Details
-
DelegatingGroupWithAttributes
-
-
Method Details
-
getName
-
compareTo
Description copied from interface:GroupCompareTo must be compatible with the equals() and hashCode() methods- Specified by:
compareToin interfaceComparable<Group>- Specified by:
compareToin interfaceGroup- Parameters:
group- 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:GroupImplementations must ensure equality based on case-insensitive getName(). -
hashCode
public int hashCode()Description copied from interface:GroupImplementations must produce a hash-code based on case-insensitive getName().
-