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

net.jqwik.vavr.arbitraries.collection.map.VavrLinkedHashMultimapArbitrary Maven / Gradle / Ivy

package net.jqwik.vavr.arbitraries.collection.map;

import java.util.Map;

import net.jqwik.vavr.arbitraries.base.MapBasedArbitrary;
import io.vavr.collection.LinkedHashMultimap;
import net.jqwik.api.Arbitrary;

/**
 * @author Benno Müller
 */
public class VavrLinkedHashMultimapArbitrary extends MapBasedArbitrary> {

    public VavrLinkedHashMultimapArbitrary(final Arbitrary keysArbitrary, final Arbitrary valuesArbitrary) {
        super(keysArbitrary, valuesArbitrary);
    }

    @Override
    protected LinkedHashMultimap convertJavaMapToVavrMap(Map javaMap) {
        return LinkedHashMultimap.withSeq().ofAll(javaMap);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy