public final class ImmutableAttributes extends Object implements Attributes, Serializable
Attributes interface.| Constructor and Description |
|---|
ImmutableAttributes()
Constructs an empty immutable Attributes object.
|
ImmutableAttributes(Attributes attributes)
Constructs an immutable copy of the passed in attributes.
|
ImmutableAttributes(Map<String,Set<String>> attributesMap)
Constructs an immutable Attributes object from the given Map.
|
| 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 ImmutableAttributes()
public ImmutableAttributes(@Nonnull Map<String,Set<String>> attributesMap)
attributesMap - The incoming attributes Map.public ImmutableAttributes(@Nonnull Attributes attributes)
attributes - to clone.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.