public class Rules
extends java.lang.Object
| Constructor and Description |
|---|
Rules() |
| Modifier and Type | Method and Description |
|---|---|
static EmptyRule |
empty()
Shorthand to return a new
EmptyRule instance |
static LengthRule |
length()
Shorthand to return a new
LengthRule instance |
static NonNullRule |
nonNull()
Shorthand to return a new
NonNullRule instance |
static RegexRule |
pattern()
Shorthand to return a new
RegexRule instance |
static QuantityRule |
quantity()
Shorthand to return a new
QuantityRule instance |
public static LengthRule length()
LengthRule instanceLengthRulepublic static EmptyRule empty()
EmptyRule instanceEmptyRulepublic static NonNullRule nonNull()
NonNullRule instanceNonNullRulepublic static QuantityRule quantity()
QuantityRule instanceQuantityRule