java.util.Map s
to map JSON Object values in.
Objects server both as "factories" for creating new builders (blueprint
style), and as actual builders. For each distinct read operation,
newBuilder will be called at least once; this instance
may be used and reused multiple times, as calling start
will reset the state so that more Lists may be built.
| Modifier and Type | Class and Description |
|---|---|
| public static class | MapBuilder.
Default |
| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | |
| protected final int | |
| protected final Class |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Map | |
| public static MapBuilder | defaultImpl()
Factory method for getting a blueprint instance of the default
|
| public Map | emptyMap()
Specialized method that is called when an empty list needs to be constructed; this may be a new list, or an immutable shared List, depending on implementation. |
| public final boolean | |
| public abstract MapBuilder | |
| public abstract MapBuilder | |
| public MapBuilder | |
| public abstract MapBuilder | |
| public Map | singletonMap(String key, Object value)
Specialized method that is called when an empty list needs to be constructed; this may be a new list, or an immutable shared List, depending on implementation. |
| public abstract MapBuilder |
| _checkDups | back to summary |
|---|---|
| protected final boolean _checkDups | |
| _features | back to summary |
|---|---|
| protected final int _features | |
| _mapType | back to summary |
|---|---|
| protected final Class<?> _mapType Optional | |
| MapBuilder | back to summary |
|---|---|
| protected MapBuilder(int features, Class<?> type) | |
| build | back to summary |
|---|---|
| public abstract Map | |
| defaultImpl | back to summary |
|---|---|
| public static MapBuilder defaultImpl() Factory method for getting a blueprint instance of the default
| |
| emptyMap | back to summary |
|---|---|
| public Map Specialized method that is called when an empty list needs to be constructed; this may be a new list, or an immutable shared List, depending on implementation. Default implementation simply calls: start().build();which assumes that a builder has been constructed with newBuilder
| |
| isEnabled | back to summary |
|---|---|
| public final boolean isEnabled(JSON. | |
| newBuilder | back to summary |
|---|---|
| public abstract MapBuilder newBuilder(int features) | |
| newBuilder | back to summary |
|---|---|
| public abstract MapBuilder newBuilder(Class<?> mapImpl) | |
| newBuilder | back to summary |
|---|---|
| public MapBuilder newBuilder() | |
| put | back to summary |
|---|---|
| public abstract MapBuilder put(String key, Object value) | |
| singletonMap | back to summary |
|---|---|
| public Map Specialized method that is called when an empty list needs to be constructed; this may be a new list, or an immutable shared List, depending on implementation. Default implementation simply calls: start().put(key, value).build(); | |
| start | back to summary |
|---|---|
| public abstract MapBuilder start() | |
MapBuilder implementation which builds
either HashMap or LinkedHashMap instances
(depending on Feature#PRESERVE_FIELD_ORDERING).
It may also, with alternate configuration,
use Collections#emptyMap() for empty Maps,
if allowed with Feature#READ_ONLY.
| Modifier and Type | Method and Description |
|---|---|
| private final Map | |
| public Map | |
| public Map | emptyMap()
Overrides com. Specialized method that is called when an empty list needs to be constructed; this may be a new list, or an immutable shared List, depending on implementation. |
| public MapBuilder | |
| public MapBuilder | newBuilder(Class<?> mapImpl)
Implements abstract com.
|
| public MapBuilder | |
| public MapBuilder |
| _current | back to summary |
|---|---|
| protected Map<String, Object> _current | |
| Default | back to summary |
|---|---|
| protected Default(int features, Class<?> type) | |
| _map | back to summary |
|---|---|
| private final Map | |
| build | back to summary |
|---|---|
| public Map Implements abstract com.
| |
| emptyMap | back to summary |
|---|---|
| public Map Overrides com. Doc from com. Specialized method that is called when an empty list needs to be constructed; this may be a new list, or an immutable shared List, depending on implementation. Default implementation simply calls: start().build();which assumes that a builder has been constructed with newBuilder
| |
| newBuilder | back to summary |
|---|---|
| public MapBuilder newBuilder(int features) Implements abstract com.
| |
| newBuilder | back to summary |
|---|---|
| public MapBuilder newBuilder(Class<?> mapImpl) Implements abstract com.
| |
| put | back to summary |
|---|---|
| public MapBuilder put(String key, Object value) Implements abstract com.
| |
| start | back to summary |
|---|---|
| public MapBuilder start() Implements abstract com.
| |