Package com.indeed.proctor.common
Interface IdentifierValidator
-
- All Known Implementing Classes:
IdentifierValidator.NoEmpty,IdentifierValidator.Noop
public interface IdentifierValidatorAn interface to validate an identifier before determining groups for tests.Proctorwon'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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIdentifierValidator.NoEmptystatic classIdentifierValidator.NoopA validator that accepts any identifiers.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanvalidate(TestType testType, java.lang.String identifier)
-
-
-
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.
-
-