public final class ImmutableGroupWithAttributes extends BaseImmutableGroup implements GroupWithAttributes
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableGroupWithAttributes.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableGroupWithAttributes.Builder |
builder(Group group,
com.google.common.collect.SetMultimap<String,String> attributes) |
static ImmutableGroupWithAttributes.Builder |
builder(GroupWithAttributes group) |
boolean |
equals(Object o)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
static ImmutableGroupWithAttributes |
from(GroupWithAttributes group) |
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getValue(String key)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String key)
Get all the values associated with a given key.
|
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
boolean |
isEmpty() |
ImmutableGroupWithAttributes |
withName(String name) |
compareTo, getDescription, getDirectoryId, getExternalId, getName, getType, isActive, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getExternalId, getType, isActivegetDirectoryId, getNamecompareTopublic static ImmutableGroupWithAttributes from(GroupWithAttributes group)
public static ImmutableGroupWithAttributes.Builder builder(GroupWithAttributes group)
public static ImmutableGroupWithAttributes.Builder builder(Group group, com.google.common.collect.SetMultimap<String,String> attributes)
@Nonnull public Set<String> getValues(String key)
AttributesgetValues in interface Attributeskey - the key to retrieve the values for@Nullable public String getValue(String key)
Attributesnull if there is no value.getValue in interface Attributeskey - the key to retrieve the value fornull if there is no valuepublic Set<String> getKeys()
AttributesgetKeys in interface Attributespublic boolean isEmpty()
isEmpty in interface Attributestrue if there are no attributespublic ImmutableGroupWithAttributes withName(String name)
withName in class BaseImmutableGrouppublic boolean equals(Object o)
DirectoryEntityequals in interface DirectoryEntityequals in class BaseImmutableGroupo - 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 BaseImmutableGroupCopyright © 2022 Atlassian. All rights reserved.