Class Overview
Immutable collection of properties mapped by string keys. Allows for storing any object as a property value.
It is strongly encouraged that the property values can be marshalled to/from JSON, or they will not be included in
REST responses.
Summary
Nested Classes |
class |
PropertyMap.Builder |
|
[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(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
java.util.Map
void
|
clear()
|
V
|
compute(K arg0, BiFunction<? super K, ? super V, ? extends V> arg1)
|
V
|
computeIfAbsent(K arg0, Function<? super K, ? extends V> arg1)
|
V
|
computeIfPresent(K arg0, BiFunction<? super K, ? super V, ? extends V> arg1)
|
boolean
|
containsKey(Object arg0)
|
boolean
|
containsValue(Object arg0)
|
Set<Entry<K, V>>
|
entrySet()
|
boolean
|
equals(Object arg0)
|
void
|
forEach(BiConsumer<? super K, ? super V> arg0)
|
V
|
get(Object arg0)
|
V
|
getOrDefault(Object arg0, V arg1)
|
int
|
hashCode()
|
boolean
|
isEmpty()
|
Set<K>
|
keySet()
|
V
|
merge(K arg0, V arg1, BiFunction<? super V, ? super V, ? extends V> arg2)
|
V
|
put(K arg0, V arg1)
|
void
|
putAll(Map<? extends K, ? extends V> arg0)
|
V
|
putIfAbsent(K arg0, V arg1)
|
boolean
|
remove(Object arg0, Object arg1)
|
V
|
remove(Object arg0)
|
boolean
|
replace(K arg0, V arg1, V arg2)
|
V
|
replace(K arg0, V arg1)
|
void
|
replaceAll(BiFunction<? super K, ? super V, ? extends V> arg0)
|
int
|
size()
|
Collection<V>
|
values()
|
|
Fields
Public Methods
public
boolean
containsKey
(Object key)
public
boolean
containsValue
(Object value)
public
boolean
equals
(Object obj)
@Nullable
public
I
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
.
Parameters
key
| property key |
iterableType
| class representing the expected type of the iterable |
elementType
| class representing the expected type of the elements |
Returns
- property value, as an instance of
I
, or null
, if this property map does not contain a
property with key key
@Nullable
public
T
getAs
(String key, Class<T> expectedType)
public
boolean
isEmpty
()
public
void
putAll
(Map<? extends String, ?> other)