Interface ValidatorImpl<T>

Type Parameters:
T - The type to validate
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface ValidatorImpl<T>
Validator is the base interface for all generated PGV validators.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static ValidatorImpl ALWAYS_VALID  
  • Method Summary

    Modifier and Type Method Description
    void assertValid​(T proto, ValidatorIndex index)
    Asserts validation rules on a protobuf object.