public interface

Group

implements Comparable<T>
com.atlassian.crowd.embedded.api.Group
Known Indirect Subclasses

Class Overview

Represents a group.

Summary

Public Methods
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().
[Expand]
Inherited Methods
From interface java.lang.Comparable

Public Methods

public int compareTo (Group o)

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

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.

public boolean equals (Object o)

Implementations must ensure equality based on case-insensitive getName().

Parameters
o object to compare to.
Returns
  • true if and only if the names in lowercase of the directory entities match.

public String getName ()

Returns
  • name of the group.

public int hashCode ()

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

Returns
  • hash-code.