All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kobylynskyi.graphql.codegen.extension.utils.JavaCollectionUtils Maven / Gradle / Ivy

The newest version!
package com.kobylynskyi.graphql.codegen.extension.utils;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @author [email protected]
 * @version 1.0, 2020/10/22
 */
final public class JavaCollectionUtils {

    private JavaCollectionUtils() {

    }

    public static  Map listToMap(final List keys, final List values) {
        return keys.stream().collect(Collectors.toMap(k -> k, k -> values.get(keys.indexOf(k))));

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy