public static final class StringAttributeConstraints.Builder
extends java.lang.Object
StringAttributeConstraints
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StringAttributeConstraints |
build()
Builds the configured instance.
|
StringAttributeConstraints.Builder |
maxLen(java.lang.Number maxLen)
Sets the value of
StringAttributeConstraints.getMaxLen() |
StringAttributeConstraints.Builder |
minLen(java.lang.Number minLen)
Sets the value of
StringAttributeConstraints.getMinLen() |
public StringAttributeConstraints.Builder maxLen(java.lang.Number maxLen)
StringAttributeConstraints.getMaxLen()
maxLen
- Maximum length of this attribute.this
public StringAttributeConstraints.Builder minLen(java.lang.Number minLen)
StringAttributeConstraints.getMinLen()
minLen
- Minimum length of this attribute.this
public StringAttributeConstraints build()
StringAttributeConstraints
java.lang.NullPointerException
- if any required attribute was not provided