| java.lang.Object |
| ↳ |
com.atlassian.stash.content.AttributeMap |
This class is deprecated.
in 3.4 for removal in 4.0. Use PropertySupport and
PropertyMap instead.
Class Overview
Immutable String -> String multimap. This class is mostly for convenience and readability. It implements
the Map<String, Set<String>> interface.
Summary
| Nested Classes |
|
class |
AttributeMap.Builder |
Builder class for AttributeMap
|
| Public Methods |
|
void
|
clear()
Not supported for AttributeMap
|
|
boolean
|
containsKey(Object key)
|
|
boolean
|
containsValue(Object value)
|
|
Set<Entry<String, Set<String>>>
|
entrySet()
|
|
boolean
|
equals(Object o)
|
|
Set<String>
|
get(Object attributeName)
|
|
int
|
hashCode()
|
|
boolean
|
isEmpty()
|
|
Set<String>
|
keySet()
|
|
Set<String>
|
put(String key, Set<String> values)
Not supported for AttributeMap
|
|
void
|
putAll(Map<? extends String, ? extends Set<String>> map)
Not supported for AttributeMap
|
|
Set<String>
|
remove(Object key)
Not supported for AttributeMap
|
|
int
|
size()
|
|
Collection<Set<String>>
|
values()
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
java.util.Map
|
void
|
clear()
|
|
boolean
|
containsKey(Object arg0)
|
|
boolean
|
containsValue(Object arg0)
|
|
Set<Entry<K, V>>
|
entrySet()
|
|
boolean
|
equals(Object arg0)
|
|
V
|
get(Object arg0)
|
|
int
|
hashCode()
|
|
boolean
|
isEmpty()
|
|
Set<K>
|
keySet()
|
|
V
|
put(K arg0, V arg1)
|
|
void
|
putAll(Map<? extends K, ? extends V> arg0)
|
|
V
|
remove(Object arg0)
|
|
int
|
size()
|
|
Collection<V>
|
values()
|
|
Fields
Public Methods
public
void
clear
()
Not supported for AttributeMap
Throws
| UnsupportedOperationException
| when called
|
public
boolean
containsKey
(Object key)
Returns
true if there are any values associated with key
public
boolean
containsValue
(Object value)
Returns
true if the value is present in the AtrtibuteMap (associated with any attributeName)
public
Set<Entry<String, Set<String>>>
entrySet
()
Returns
- the attributeName -> attributeValues entry set
public
boolean
equals
(Object o)
public
Set<String>
get
(Object attributeName)
Parameters
| attributeName
| the attributeName |
Returns
- the set of values associated with
attributeName. Is null if no values are associated
with attributeName
public
boolean
isEmpty
()
Returns
true if the AttributeMap is empty
public
Set<String>
keySet
()
public
Set<String>
put
(String key, Set<String> values)
Not supported for AttributeMap
Parameters
| key
| the attribute name |
| values
| attribute values |
Throws
| UnsupportedOperationException
| when called
|
public
void
putAll
(Map<? extends String, ? extends Set<String>> map)
Not supported for AttributeMap
Parameters
| map
| the map of attributes to add |
Throws
| UnsupportedOperationException
| when called
|
public
Set<String>
remove
(Object key)
Not supported for AttributeMap
Throws
| UnsupportedOperationException
| when called
|
public
int
size
()
Returns
- the size of the attributeMap
public
Collection<Set<String>>
values
()
Returns
- the collection of all attributeValues