Class StringInputReader


  • public class StringInputReader
    extends InputReader<java.lang.String,​StringInputReader>
    A reader for string values. Allows configuring the minimum and maximum length, as well as a regex pattern.
    • Constructor Detail

      • StringInputReader

        public StringInputReader​(java.util.function.Supplier<TextTerminal<?>> textTerminalSupplier)
    • Method Detail

      • withPattern

        public StringInputReader withPattern​(java.lang.String regex,
                                             int flags)
      • getLengthValidationErrors

        protected java.util.List<java.lang.String> getLengthValidationErrors​(java.lang.String s)
      • getPatternValidationErrors

        protected java.util.List<java.lang.String> getPatternValidationErrors​(java.lang.String s)