Class PropertyBuilder.RegexPropertyBuilder

    • Method Detail

      • defaultValue

        public PropertyBuilder.RegexPropertyBuilder defaultValue​(java.lang.String pattern)
        Specify a default value using a string pattern. The argument is compiled to a pattern using Pattern.compile(String).
        Parameters:
        pattern - String pattern
        Returns:
        The same builder
        Throws:
        java.util.regex.PatternSyntaxException - If the argument is not a valid pattern
      • defaultValue

        public PropertyBuilder.RegexPropertyBuilder defaultValue​(java.lang.String pattern,
                                                                 int flags)
        Specify a default value using a string pattern. The argument is compiled to a pattern using Pattern.compile(String, int).
        Parameters:
        pattern - String pattern
        flags - Regex compilation flags, the same as for Pattern.compile(String, int)
        Returns:
        The same builder
        Throws:
        java.util.regex.PatternSyntaxException - If the argument is not a valid pattern
        java.lang.IllegalArgumentException - If bit values other than those corresponding to the defined match flags are set in flags
      • getType

        protected java.lang.Class<T> getType()