public class Dictionary extends Object implements Type<Map<String,ListElement<? extends Object>>>
Modifier and Type | Method and Description |
---|---|
Map<String,ListElement<? extends Object>> |
get() |
String |
serialize()
Serialize.
|
StringBuilder |
serializeTo(StringBuilder sb)
Serialize to an existing
StringBuilder . |
static Dictionary |
valueOf(Map<String,ListElement<? extends Object>> value)
Creates a
Dictionary instance representing the specified
Map<String, Item> value. |
public static Dictionary valueOf(Map<String,ListElement<? extends Object>> value)
Dictionary
instance representing the specified
Map<String, Item>
value.
Note that the Map
implementation that is used here needs to
iterate predictably based on insertion order, such as
LinkedHashMap
.
value
- a Map<String, Item>
valueDictionary
representing value
.public Map<String,ListElement<? extends Object>> get()
public StringBuilder serializeTo(StringBuilder sb)
Type
StringBuilder
.serializeTo
in interface Type<Map<String,ListElement<? extends Object>>>
sb
- where to serialize toStringBuilder
so calls can be chained.Copyright © 2021 The Apache Software Foundation. All rights reserved.