public class AttributeValuesHolder extends Object implements Attributes
Constructor and Description |
---|
AttributeValuesHolder(Map<String,String> attributes) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAttributeAsBoolean(String name,
boolean defaultValue) |
long |
getAttributeAsLong(String name,
long defaultValue) |
Map<String,String> |
getAttributes() |
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getValue(String name)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String name)
Get all the values associated with a given key.
|
boolean |
isEmpty() |
public Set<String> getValues(String name)
Attributes
getValues
in interface Attributes
name
- the key to retrieve the values forpublic String getValue(String name)
Attributes
null
if there is no value.getValue
in interface Attributes
name
- the key to retrieve the value fornull
if there is no valuepublic long getAttributeAsLong(String name, long defaultValue)
public boolean getAttributeAsBoolean(String name, boolean defaultValue)
public Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributesCopyright © 2020 Atlassian. All rights reserved.