net.jqwik.engine.properties.FeatureExtractor Maven / Gradle / Ivy
package net.jqwik.engine.properties;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;
@FunctionalInterface
public interface FeatureExtractor extends Function {
static FeatureExtractor identity() {
return t -> t;
}
default Object applySafe(T t) {
try {
return apply(t);
} catch (NullPointerException npe) {
return null;
}
}
default boolean isUniqueIn(T value, Collection elements) {
Set
© 2015 - 2024 Weber Informatics LLC | Privacy Policy