com.atlassian.crowd.embedded.api
Interface Group

All Superinterfaces:
Comparable<Group>
All Known Subinterfaces:
GroupWithAttributes
All Known Implementing Classes:
DelegatingGroupWithAttributes, ImmutableGroup

public interface Group
extends Comparable<Group>

Represents a group.


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

Method Detail

getName

String getName()
Returns:
name of the group.

equals

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

Overrides:
equals in class Object
Parameters:
o - object to compare to.
Returns:
true if and only if the names in lowercase of the directory entities match.

hashCode

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

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

compareTo

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

Specified by:
compareTo in interface 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 © 2012 Atlassian. All Rights Reserved.