com.atlassian.crowd.embedded.impl
Class ImmutableGroup

java.lang.Object
  extended by com.atlassian.crowd.embedded.impl.ImmutableGroup
All Implemented Interfaces:
Group, java.io.Serializable, java.lang.Comparable<Group>

public class ImmutableGroup
extends java.lang.Object
implements Group, java.io.Serializable

A general purpose immutable implementation of the Group interface.

Note: This object does not allow null name.

See Also:
Serialized Form

Constructor Summary
ImmutableGroup(java.lang.String name)
           
 
Method Summary
 int compareTo(Group other)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableGroup

public ImmutableGroup(@NotNull
                      java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Group

compareTo

public int compareTo(Group other)
Specified by:
compareTo in interface Group
Specified by:
compareTo in interface java.lang.Comparable<Group>

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface Group
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Group
Overrides:
hashCode in class java.lang.Object


Copyright © 2012 Atlassian. All Rights Reserved.