Class MapExpander


  • public final class MapExpander
    extends Object
    Expands map with shortcut keys like {jvm.heapspace.max: 4096m} to {jvm: {heapspace: {max: 4096m}}}
    • Method Detail

      • 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 - Map
        key - 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