net.jqwik.engine.properties.shrinking.Unshrinkable Maven / Gradle / Ivy
package net.jqwik.engine.properties.shrinking;
import net.jqwik.api.*;
import net.jqwik.engine.support.*;
public class Unshrinkable implements Shrinkable {
private final T value;
public Unshrinkable(T value) {this.value = value;}
@Override
public T value() {
return value;
}
@Override
public ShrinkingSequence shrink(Falsifier falsifier) {
return ShrinkingSequence.dontShrink(this);
}
@Override
public ShrinkingDistance distance() {
return ShrinkingDistance.of(0);
}
@Override
public String toString() {
return JqwikStringSupport.displayString(value);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Unshrinkable> that = (Unshrinkable>) o;
return value.equals(that.value);
}
@Override
public int hashCode() {
return value.hashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy