|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.embedded.impl.ImmutableGroup
public class ImmutableGroup
A general purpose immutable implementation of the Group interface.
Note: This object does not allow null name.
Constructor Summary | |
---|---|
ImmutableGroup(java.lang.String name)
|
Method Summary | |
---|---|
int |
compareTo(Group other)
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(). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImmutableGroup(@NotNull java.lang.String name)
Method Detail |
---|
public java.lang.String getName()
getName
in interface Group
public int compareTo(Group other)
Group
compareTo
in interface Group
compareTo
in interface java.lang.Comparable<Group>
other
- the object to be compared.
public boolean equals(java.lang.Object o)
Group
equals
in interface Group
equals
in class java.lang.Object
o
- object to compare to.
true
if and only if the name.toLowerCase()
of the directory entities match.public int hashCode()
Group
hashCode
in interface Group
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |