Interface ValidatorRegistry<V,​SELF>

  • Type Parameters:
    V - the generic type of the value to validate. May be Object to register any validator. Otherwise only validators can be added that are compatible with this type.
    SELF - the result of the add(Validator) method. Typically the self reference (this) for fluent API calls.

    public interface ValidatorRegistry<V,​SELF>
    This is the interface for a registry where Validators can be added.
    Since:
    1.0.0
    • Method Detail

      • add

        SELF add​(Validator<? super V> validator)
        Parameters:
        validator - the AbstractValidator to add to this builder.
        Returns:
        this build instance for fluent API calls.