Interface Prompt.Validator

Enclosing class:
Prompt

public static interface Prompt.Validator
Checks an answer before a text prompt accepts it.
  • Method Summary

    Modifier and Type
    Method
    Description
    Null to accept value, otherwise the message shown under the prompt while the person corrects it.
  • Method Details

    • validate

      String validate(String value)
      Null to accept value, otherwise the message shown under the prompt while the person corrects it.