public class PropertyMap extends Object implements Map<String,Object>
It is strongly encouraged that the property values can be marshalled to/from JSON, or they will not be included in REST responses.
PropertySupport| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyMap.Builder |
| Modifier and Type | Field and Description |
|---|---|
static PropertyMap |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object obj) |
Object |
get(Object key) |
<E,I extends Iterable<E>> |
getAs(String key,
Class<I> iterableType,
Class<E> elementType)
Convenience method to return the property value as an instance of
Iterable with element type E. |
<T> T |
getAs(String key,
Class<T> expectedType) |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> other) |
Object |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<Object> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static final PropertyMap EMPTY
@Nullable public <E,I extends Iterable<E>> I getAs(@Nonnull String key, @Nonnull Class<I> iterableType, @Nonnull Class<E> elementType)
Iterable with element type E.E - type of the elementI - type of the iterablekey - property keyiterableType - class representing the expected type of the iterableelementType - class representing the expected type of the elementsI, or null, if this property map does not contain a
property with key keyClassCastException - if the property exists, but is not of expected type iterableTypepublic boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>@Nonnull public Collection<Object> values()
public boolean equals(Object obj)
public int hashCode()
Copyright © 2019 Atlassian. All rights reserved.