Interface GuavaValidators
- All Superinterfaces:
GuavaAssertThat
,GuavaCheckIf
,GuavaRequireThat
,Validators<GuavaValidators>
public interface GuavaValidators
extends Validators<GuavaValidators>, GuavaRequireThat, GuavaAssertThat, GuavaCheckIf
Creates validators for the Guava API with an independent configuration.
A factory that creates different types of validators.
There are three kinds of validators:
requireThat()
for method preconditions.assertThat()
for class invariants, and method postconditions.checkIf()
for returning multiple validation failures.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic GuavaValidators
Creates a new instance using the default configuration.Methods declared in interface com.github.cowwoc.requirements10.guava.GuavaAssertThat
assertThat, assertThat
Methods declared in interface com.github.cowwoc.requirements10.guava.GuavaCheckIf
checkIf, checkIf
Methods declared in interface com.github.cowwoc.requirements10.guava.GuavaRequireThat
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
-