public class

DelegatingGroupWithAttributes

extends AbstractDelegatingEntityWithAttributes
implements GroupWithAttributes
java.lang.Object
   ↳ com.atlassian.crowd.embedded.impl.AbstractDelegatingEntityWithAttributes
     ↳ com.atlassian.crowd.embedded.impl.DelegatingGroupWithAttributes

Class Overview

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".

Summary

Public Constructors
DelegatingGroupWithAttributes(Group group, Attributes attributes)
Public Methods
int compareTo(Group group)
CompareTo must be compatible with the equals() and hashCode() methods
boolean equals(Object o)
String getName()
int hashCode()
[Expand]
Inherited Methods
From class com.atlassian.crowd.embedded.impl.AbstractDelegatingEntityWithAttributes
From class java.lang.Object
From interface com.atlassian.crowd.embedded.api.Attributes
From interface com.atlassian.crowd.embedded.api.Group
From interface java.lang.Comparable

Public Constructors

public DelegatingGroupWithAttributes (Group group, Attributes attributes)

Public Methods

public int compareTo (Group group)

CompareTo must be compatible with the equals() and hashCode() methods

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.

public boolean equals (Object o)

public String getName ()

public int hashCode ()