|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 Grouppublic int compareTo(Group other)
Group
compareTo in interface GroupcompareTo in interface java.lang.Comparable<Group>other - the object to be compared.
public boolean equals(java.lang.Object o)
Group
equals in interface Groupequals in class java.lang.Objecto - object to compare to.
true if and only if the names in lowercase
of the directory entities match.public int hashCode()
Group
hashCode in interface GrouphashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||