public static final class NumberAttributeConstraints.Builder
extends java.lang.Object
NumberAttributeConstraints
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
NumberAttributeConstraints |
build()
Builds the configured instance.
|
NumberAttributeConstraints.Builder |
max(java.lang.Number max)
Sets the value of
NumberAttributeConstraints.getMax() |
NumberAttributeConstraints.Builder |
min(java.lang.Number min)
Sets the value of
NumberAttributeConstraints.getMin() |
public NumberAttributeConstraints.Builder max(java.lang.Number max)
NumberAttributeConstraints.getMax()
max
- Maximum value of this attribute.this
public NumberAttributeConstraints.Builder min(java.lang.Number min)
NumberAttributeConstraints.getMin()
min
- Minimum value of this attribute.this
public NumberAttributeConstraints build()
NumberAttributeConstraints
java.lang.NullPointerException
- if any required attribute was not provided