public class MultiValuedAttributeEntityList extends Object implements Attributes, Iterable<MultiValuedAttributeEntity>
Constructor and Description |
---|
MultiValuedAttributeEntityList(List<MultiValuedAttributeEntity> attributes) |
Modifier and Type | Method and Description |
---|---|
MultiValuedAttributeEntity |
get(int index) |
Set<String> |
getKeys()
Gets all the keys of the attributes.
|
String |
getValue(String key)
Returns any value associated with the given key, returns
null if there is no value. |
Set<String> |
getValues(String key)
Get all the values associated with a given key.
|
boolean |
isEmpty() |
Iterator<MultiValuedAttributeEntity> |
iterator() |
int |
size() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public MultiValuedAttributeEntityList(List<MultiValuedAttributeEntity> attributes)
public int size()
public Set<String> getValues(String key)
Attributes
getValues
in interface Attributes
key
- the key to retrieve the values forpublic String getValue(String key)
Attributes
null
if there is no value.getValue
in interface Attributes
key
- the key to retrieve the value fornull
if there is no valuepublic Set<String> getKeys()
Attributes
getKeys
in interface Attributes
public boolean isEmpty()
isEmpty
in interface Attributes
true
if there are no attributespublic MultiValuedAttributeEntity get(int index)
public Iterator<MultiValuedAttributeEntity> iterator()
iterator
in interface Iterable<MultiValuedAttributeEntity>
Copyright © 2021 Atlassian. All rights reserved.