public class DemoGroup extends Object implements Group
Constructor and Description |
---|
DemoGroup(String name,
long directoryId,
boolean active,
String description,
GroupType type) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Group o) |
boolean |
equals(Object o)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
String |
getDescription() |
long |
getDirectoryId() |
String |
getName() |
GroupType |
getType() |
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
boolean |
isActive() |
static DemoGroup |
newInstance(String name,
boolean active,
String description) |
public GroupType getType()
public boolean isActive()
public String getDescription()
getDescription
in interface Group
null
if there is no description.public int compareTo(Group o)
compareTo
in interface Comparable<Group>
public long getDirectoryId()
getDirectoryId
in interface DirectoryEntity
public String getName()
getName
in interface DirectoryEntity
public boolean equals(Object o)
DirectoryEntity
equals
in interface DirectoryEntity
equals
in class Object
o
- object to compare to.true
if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntity
hashCode
in interface DirectoryEntity
hashCode
in class Object
Copyright © 2013 Atlassian. All Rights Reserved.