Class ModelMapBuilder<K,V>
java.lang.Object
com.atlassian.confluence.api.model.reference.ModelMapBuilder<K,V>
A Map builder for
CollapsedMap
and EnrichableMap
instances.
The map built will be Collapsed unless put or addCollapsed methods are called. This class should be suitable for all Map usage in model Factories and Builders.
-
Method Summary
Modifier and TypeMethodDescriptionaddCollapsedEntries
(Iterable<? extends K> collapsedEntries) addCollapsedEntry
(K key) build()
Build the map.Store CollapsedMap/NavMap but store values of other maps, including Enrichables.navigable
(Navigation.Builder navBuilder) static <K,
V> ModelMapBuilder <K, V> static <K,
V> ModelMapBuilder <K, V> static <K,
V> ModelMapBuilder <K, V> newInstance
(Map<? extends K, ? extends V> map)
-
Method Details
-
newInstance
-
newInstance
-
newExpandedInstance
-
put
-
putAll
-
addCollapsedEntry
-
addCollapsedEntries
- Since:
- 5.10
-
copy
Store CollapsedMap/NavMap but store values of other maps, including Enrichables.Replaces any existing contents in this builder with the contents of the map
-
build
Build the map. If an expanded map method has been called last on the builder, an EnrichableMap will be returned. If not, a collapsed map will be built. -
buildFromDelegate
- Since:
- 7.0.1
-