|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.rest.entity.AttributeEntityList
public class AttributeEntityList
Contains a list of AttributeEntitys.
Constructor Summary | |
---|---|
AttributeEntityList(java.util.List<AttributeEntity> attributes)
|
Method Summary | |
---|---|
AttributeEntity |
get(int index)
|
java.util.Set<java.lang.String> |
getKeys()
Gets all the keys of the attributes. |
java.lang.String |
getValue(java.lang.String key)
Returns the value associated with the given key, returns null if there is no value,
or throws an exception if there is more than one value. |
java.util.Set<java.lang.String> |
getValues(java.lang.String key)
Get all the values associated with a given key. |
boolean |
isEmpty()
|
java.util.Iterator<AttributeEntity> |
iterator()
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeEntityList(java.util.List<AttributeEntity> attributes)
Method Detail |
---|
public int size()
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) throws DuplicateAttributeValueException
Attributes
null
if there is no value,
or throws an exception if there is more than one value.
getValue
in interface Attributes
key
- the key to retrieve the value for
null
if there is no value
DuplicateAttributeValueException
- if the attribute has more than one value stored against itpublic java.util.Set<java.lang.String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic AttributeEntity get(int index)
public java.util.Iterator<AttributeEntity> iterator()
iterator
in interface java.lang.Iterable<AttributeEntity>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |