All Downloads are FREE. Search and download functionalities are using the official Maven repository.

autofixture.generators.objects.implementationdetails.ConstructorVisibility Maven / Gradle / Ivy

There is a newer version: 2.1.10
Show newest version
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());
  }

}