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

net.jqwik.api.support.CollectorsSupport Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.api.support;

import java.util.*;
import java.util.stream.*;

import org.apiguardian.api.*;
import org.jspecify.annotations.*;

import static org.apiguardian.api.API.Status.*;

/**
 * Provide implementation for stream to collect to LinkedHashSet in order to preserve order
 * and to make random-based generation deterministic
 */
@API(status = INTERNAL)
public class CollectorsSupport {

	private CollectorsSupport() {}

	public static  Collector> toLinkedHashSet() {
		return Collectors.toCollection(LinkedHashSet::new);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy