public abstract class AbstractDelegatingEntityWithAttributes extends Object implements Attributes
Attributes interface.
This is the common behaviour of DelegatingUserWithAttributes and DelegatingGroupWithAttributes.| Constructor and Description |
|---|
AbstractDelegatingEntityWithAttributes(Attributes attributes) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isEmpty() |
public AbstractDelegatingEntityWithAttributes(Attributes attributes)
public Set<String> getValues(String key)
AttributesgetValues in interface Attributeskey - the key to retrieve the values forpublic 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 attributesCopyright © 2018 Atlassian. All rights reserved.