Uses of Class
org.apache.juneau.internal.MapBuilder
Packages that use MapBuilder
-
Uses of MapBuilder in org.apache.juneau.internal
Methods in org.apache.juneau.internal that return MapBuilderModifier and TypeMethodDescriptionMapBuilder<K,
V> Adds a single entry to this map.MapBuilder<K,
V> Appends the contents of the specified map into this map.MapBuilder<K,
V> Adds arbitrary values to this list.MapBuilder<K,
V> Adds entries to this list via JSON object strings.MapBuilder<K,
V> Adds a list of key/value pairs to this map.MapBuilder<K,
V> MapBuilder.copy()
Forces the existing set to be copied instead of appended to.static <K,
V> MapBuilder<K, V> CollectionUtils.mapBuilder
(Class<K> keyType, Class<V> valueType, Type... valueTypeArgs) Instantiates a new builder of the specified map type.static <K,
V> MapBuilder<K, V> CollectionUtils.mapBuilder
(Map<K, V> addTo) Instantiates a new builder on top of the specified map.MapBuilder<K,
V> MapBuilder.sorted()
Converts the set into aSortedMap
.MapBuilder<K,
V> MapBuilder.sorted
(Comparator<K> comparator) Converts the set into aSortedMap
using the specified comparator.MapBuilder<K,
V> MapBuilder.sparse()
When specified, thebuild()
method will returnnull if the map is empty.MapBuilder<K,
V> MapBuilder.unmodifiable()
When specified,build()
will return an unmodifiable map.