Class CharSequenceValidatorBuilder<V extends CharSequence,​PARENT,​SELF extends CharSequenceValidatorBuilder<V,​PARENT,​SELF>>

    • Constructor Detail

      • CharSequenceValidatorBuilder

        public CharSequenceValidatorBuilder​(PARENT parent)
        The constructor.
        Parameters:
        parent - the parent builder.
    • Method Detail

      • pattern

        public SELF pattern​(String pattern)
        Parameters:
        pattern - the regular expression Pattern to match.
        Returns:
        this build instance for fluent API calls.
      • pattern

        public SELF pattern​(Pattern pattern)
        Parameters:
        pattern - the regular expression Pattern to match.
        Returns:
        this build instance for fluent API calls.
      • min

        public SELF min​(int min)
        Parameters:
        min - the minimum length allowed.
        Returns:
        this build instance for fluent API calls.
      • max

        public SELF max​(int max)
        Parameters:
        max - the maximum length allowed.
        Returns:
        this build instance for fluent API calls.
      • range

        public SELF range​(Integer min,
                          Integer max)
        Parameters:
        min - the minimum length allowed or null for no lower bound.
        max - the maximum length allowed or null for no upper bound.
        Returns:
        this build instance for fluent API calls.
      • email

        public SELF email()
        Returns:
        this build instance for fluent API calls.
      • emailSpec

        public SELF emailSpec()
        Returns:
        this build instance for fluent API calls.
      • phoneNumber

        public SELF phoneNumber()
        Returns:
        this build instance for fluent API calls.
      • host

        public SELF host()
        Adds a ValidatorHost (hostname or IP-address).
        Returns:
        this build instance for fluent API calls.
      • hostname

        public SELF hostname()
        Returns:
        this build instance for fluent API calls.
      • ipAddress

        public SELF ipAddress()
        Returns:
        this build instance for fluent API calls.