public class ImmutableGroup extends Object implements Group
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableGroup.Builder |
Modifier and Type | Method and Description |
---|---|
static ImmutableGroup.Builder |
builder(Group group) |
static ImmutableGroup.Builder |
builder(long directoryId,
String name) |
static ImmutableGroup.Builder |
builder(String name) |
int |
compareTo(Group other) |
boolean |
equals(Object o)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
static ImmutableGroup |
from(Group group) |
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() |
public static ImmutableGroup from(Group group)
ImmutableGroup
with the same properties as the given group.
Will avoid creating a copy if possible.public static ImmutableGroup.Builder builder(long directoryId, String name)
public static ImmutableGroup.Builder builder(String name)
public static ImmutableGroup.Builder builder(Group group)
public int compareTo(@Nonnull Group other)
compareTo
in interface Comparable<Group>
public long getDirectoryId()
getDirectoryId
in interface DirectoryEntity
public String getName()
getName
in interface DirectoryEntity
public GroupType getType()
public boolean isActive()
public String getDescription()
getDescription
in interface Group
null
if there is no description.public String getExternalId()
Group
null
for directories which do not support external idsgetExternalId
in interface Group
null
it there is no external idpublic 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 © 2021 Atlassian. All rights reserved.
View cookie preferences