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);
}
}