net.jqwik.engine.discovery.predicates.IsTopLevelClass Maven / Gradle / Ivy
The newest version!
package net.jqwik.engine.discovery.predicates;
import java.util.function.*;
public class IsTopLevelClass implements Predicate> {
@Override
public boolean test(Class> candidate) {
return candidate.getDeclaringClass() == null;
}
}