Interface IdentifierValidator

  • All Known Implementing Classes:
    IdentifierValidator.NoEmpty, IdentifierValidator.Noop

    public interface IdentifierValidator
    An interface to validate an identifier before determining groups for tests. Proctor won't assign any bucket for the identifier and test type when it's classified as invalid. An example case to valid against is a dummy account id that indicates the user is logged out.
    • Method Detail

      • validate

        boolean validate​(@Nonnull
                         TestType testType,
                         @Nonnull
                         java.lang.String identifier)
        Returns:
        true iff the identifier is valid as a value for the test type.