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 |
---|---|
boolean |
equals(Object o) |
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() |
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)
Attributes
getValues
in interface Attributes
key
- the key to retrieve the values forpublic String getValue(String key)
Attributes
null
if there is no value.getValue
in interface Attributes
key
- the key to retrieve the value fornull
if there is no valuepublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributesCopyright © 2021 Atlassian. All rights reserved.