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

org.zalando.riptide.IO Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package org.zalando.riptide;

import com.google.gag.annotation.remark.ThisWouldBeOneLineIn;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Map;

interface IO extends RequestExecution {

    @ThisWouldBeOneLineIn(
            language = "Spring 5",
            toWit = "target.addAll(toMultiValueMap(source))")
    default void copyTo(
            final Map> source,
            final MultiValueMap target) {

        source.forEach((name, values) ->
                values.forEach(value ->
                        target.add(name, value)));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy