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

net.jqwik.engine.properties.shrinking.ShrinkableList Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.engine.properties.shrinking;

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

import net.jqwik.api.*;

public class ShrinkableList extends ShrinkableContainer, E> {

	private final int minSize;

	public ShrinkableList(List> elements, int minSize) {
		super(elements, minSize);
		this.minSize = minSize;
	}

	@Override
	Collector> containerCollector() {
		return Collectors.toList();
	}

	@Override
	Shrinkable> createShrinkable(List> shrunkElements) {
		return new ShrinkableList<>(shrunkElements, minSize);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy