Interface JavaValidators
- All Superinterfaces:
JavaAssertThat
,JavaCheckIf
,JavaRequireThat
,Validators<JavaValidators>
public interface JavaValidators
extends Validators<JavaValidators>, JavaRequireThat, JavaAssertThat, JavaCheckIf
Creates validators for the Java API with an independent configuration.
A factory that creates different types of validators.
There are three kinds of validators:
requireThat()
for method preconditions.assert that()
for class invariants, and method postconditions.checkIf()
for returning multiple validation failures.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic JavaValidators
Creates a new instance using the default configuration.Methods declared in interface com.github.cowwoc.requirements10.java.JavaAssertThat
that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that
Methods declared in interface com.github.cowwoc.requirements10.java.JavaCheckIf
checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf, checkIf
Methods declared in interface com.github.cowwoc.requirements10.java.JavaRequireThat
requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat, requireThat
Methods declared in interface com.github.cowwoc.requirements10.java.Validators
copy, getContext, globalConfiguration, removeContext, withContext
-
Method Details
-
newInstance
Creates a new instance using the default configuration.- Returns:
- an instance of this interface
-