Class FlatMapUtil

java.lang.Object
com.helixframework.collections.util.FlatMapUtil

public class FlatMapUtil extends Object
Utility class for flattening a map.
  • Method Details

    • flatten

      public static Map<String,Object> flatten(Map<String,Object> map)
      Flattens a given map by concatenating the keys with forward slashes. The values in the map can be of type Map or List.
      Parameters:
      map - the map to flatten
      Returns:
      a new map with flattened keys