com.atlassian.crowd.embedded.api
Interface Group

All Superinterfaces:
java.lang.Comparable<Group>
All Known Subinterfaces:
GroupWithAttributes
All Known Implementing Classes:
DelegatingGroupWithAttributes

public interface Group
extends java.lang.Comparable<Group>


Method Summary
 int compareTo(Group o)
          CompareTo must be compatible with the equals() and hashCode() methods
 boolean equals(java.lang.Object o)
          Implementations must ensure equality based on case-insensitive getName().
 java.lang.String getName()
           
 int hashCode()
          Implementations must produce a hash-code based on case-insensitive getName().
 

Method Detail

getName

java.lang.String getName()
Returns:
name of the group.

equals

boolean equals(java.lang.Object o)
Implementations must ensure equality based on case-insensitive getName().

Overrides:
equals in class java.lang.Object
Parameters:
o - object to compare to.
Returns:
true if and only if the name.toLowerCase() of the directory entities match.

hashCode

int hashCode()
Implementations must produce a hash-code based on case-insensitive getName().

Overrides:
hashCode in class java.lang.Object
Returns:
hash-code.

compareTo

int compareTo(Group o)
CompareTo must be compatible with the equals() and hashCode() methods

Specified by:
compareTo in interface java.lang.Comparable<Group>
Parameters:
o - 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.


Copyright © 2010 Atlassian. All Rights Reserved.