
com.moesif.helpers.CollectionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moesif-okhttp-interceptor Show documentation
Show all versions of moesif-okhttp-interceptor Show documentation
Moesif Java OkHttp Interceptor SDK
package com.moesif.helpers;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class CollectionUtils {
public static Map flattenMultiMap(Map> multiMap) {
Map result = new HashMap<>();
for (Map.Entry> entry : multiMap.entrySet()) {
for (V value : entry.getValue()) {
result.put(entry.getKey(), value);
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy