net.jqwik.vavr.arbitraries.collection.map.VavrHashMultimapArbitrary 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.HashMultimap;
import net.jqwik.api.Arbitrary;
/**
* @author Benno Müller
*/
public class VavrHashMultimapArbitrary extends MapBasedArbitrary> {
public VavrHashMultimapArbitrary(final Arbitrary keysArbitrary, final Arbitrary valuesArbitrary) {
super(keysArbitrary, valuesArbitrary);
}
@Override
protected HashMultimap convertJavaMapToVavrMap(Map javaMap) {
return HashMultimap.withSeq().ofAll(javaMap);
}
}