public abstract class BaseImmutableGroup extends Object implements Group
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseImmutableGroup.Builder<T extends BaseImmutableGroup.Builder> |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseImmutableGroup(BaseImmutableGroup.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Group other) |
boolean |
equals(Object o)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
String |
getDescription() |
long |
getDirectoryId() |
String |
getExternalId()
This will return
null for directories which do not support external ids |
String |
getName() |
GroupType |
getType() |
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
boolean |
isActive() |
String |
toString() |
abstract BaseImmutableGroup |
withName(String name) |
protected BaseImmutableGroup(BaseImmutableGroup.Builder builder)
public abstract BaseImmutableGroup withName(String name)
public int compareTo(@Nonnull Group other)
compareTo in interface Comparable<Group>public long getDirectoryId()
getDirectoryId in interface DirectoryEntitypublic String getName()
getName in interface DirectoryEntitypublic GroupType getType()
public boolean isActive()
public String getDescription()
getDescription in interface Groupnull if there is no description.public String getExternalId()
Groupnull for directories which do not support external idsgetExternalId in interface Groupnull it there is no external idpublic boolean equals(Object o)
DirectoryEntityequals in interface DirectoryEntityequals in class Objecto - object to compare to.true if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntityhashCode in interface DirectoryEntityhashCode in class ObjectCopyright © 2024 Atlassian. All rights reserved.