public abstract class EntityWithAttributes extends Object implements Attributes
Constructor and Description |
---|
EntityWithAttributes(Map<String,Set<String>> attributes) |
EntityWithAttributes(com.google.common.collect.Multimap<String,String> attributes) |
Modifier and Type | Method and Description |
---|---|
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() |
String |
toString() |
public EntityWithAttributes(com.google.common.collect.Multimap<String,String> attributes)
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 boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
Copyright © 2020 Atlassian. All rights reserved.