com.atlassian.crowd.embedded.impl
Class ImmutableGroup

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

public class ImmutableGroup
extends Object
implements Group, 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(String name)
           
 
Method Summary
 int compareTo(Group other)
           
 boolean equals(Object o)
           
 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(@Nonnull
                      String name)
Method Detail

getName

public 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 Comparable<Group>

equals

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

hashCode

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


Copyright © 2014 Atlassian. All Rights Reserved.