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

net.jqwik.vavr.arbitraries.collection.map.VavrLinkedHashMapArbitrary 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.LinkedHashMap;
import net.jqwik.api.Arbitrary;

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy