public final BuilderType addDialogValidator ( @ NonNull final DialogValidator validator ) { Condition . INSTANCE . ensureNotNull ( validator , "The validator may not be null" ) ; getProduct ( ) . addDialogValidator ( validator ) ; return self ( ) ; }
Adds a new validator which should be executed when the positive button of the dialog which is created by the builder is clicked .