|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.embedded.impl.ImmutableAttributes
public final class ImmutableAttributes
A general purpose immutable implementation of the Attributes
interface.
Constructor Summary | |
---|---|
ImmutableAttributes()
Constructs an empty immutable Attributes object. |
|
ImmutableAttributes(Attributes attributes)
Constructs an immutable copy of the passed in attributes. |
|
ImmutableAttributes(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributesMap)
Constructs an immutable Attributes object from the given Map. |
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getKeys()
Gets all the keys of the attributes. |
java.lang.String |
getValue(java.lang.String key)
Returns any value associated with the given key, returns null if there is no value. |
java.util.Set<java.lang.String> |
getValues(java.lang.String key)
Get all the values associated with a given key. |
boolean |
isEmpty()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImmutableAttributes()
public ImmutableAttributes(@NotNull java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributesMap)
attributesMap
- The incoming attributes Map.public ImmutableAttributes(@NotNull Attributes attributes)
attributes
- to clone.Method Detail |
---|
public java.util.Set<java.lang.String> getValues(java.lang.String key)
Attributes
getValues
in interface Attributes
key
- the key to retrieve the values for
public java.lang.String getValue(java.lang.String key)
Attributes
null
if there is no value.
getValue
in interface Attributes
key
- the key to retrieve the value for
null
if there is no valuepublic java.util.Set<java.lang.String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |