net.jqwik.engine.properties.shrinking.ShrinkableList Maven / Gradle / Ivy
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