autofixture.generators.objects.implementationdetails.ConstructorVisibility Maven / Gradle / Ivy
package autofixture.generators.objects.implementationdetails;
/**
* Created by grzes on 04.07.2017.
*/
public interface ConstructorVisibility {
boolean appliesTo(InstanceCreation constructor);
static ConstructorVisibility getPublic() {
return new VisibilityCondition<>(c -> c.isPublic());
}
static ConstructorVisibility getPackagePrivate() {
return new VisibilityCondition<>(c -> c.isPackagePrivate());
}
}