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 GuavaValidatorsCreates a new instance using the default configuration.Methods declared in interface GuavaAssertThat
assertThat, assertThatMethods declared in interface GuavaCheckIf
checkIf, checkIfMethods declared in interface GuavaRequireThat
requireThatMethods declared in interface Validators
copy, getContext, globalConfiguration, removeContext, withContext
-
Method Details
-
newInstance
Creates a new instance using the default configuration.- Returns:
- an instance of this interface
-