Package io.wcm.devops.conga.model.util
Class MapExpander
java.lang.Object
io.wcm.devops.conga.model.util.MapExpander
Expands map with shortcut keys like
{jvm.heapspace.max: 4096m}
to
{jvm: {heapspace: {max: 4096m}}}
-
Method Summary
Modifier and TypeMethodDescriptionExpands shortcut keysstatic @Nullable Object
Get object from map with "deep" access resolving dots in the key as nested map keys.
-
Method Details
-
getDeep
@Nullable public static @Nullable Object getDeep(@NotNull @NotNull Map<String, Object> map, @NotNull @NotNull String key) Get object from map with "deep" access resolving dots in the key as nested map keys.- Parameters:
map
- Mapkey
- Key with dots- Returns:
- Value or null
-
expand
@Nullable public static @Nullable Map<String,Object> expand(@Nullable @Nullable Map<String, Object> map) Expands shortcut keys- Parameters:
map
- Unexpanded map- Returns:
- Expanded amp
-