public class Rules extends Object
| Modifier and Type | Field and Description |
|---|---|
static AlfaNumericoRule |
alfaNumerico |
static BeforeTodayRule |
beforeToday |
static CepRule |
cep |
static CnpjRule |
cnpj |
static CnsRule |
cns |
static CpfRule |
cpf |
static EmailRule |
email |
static EmptyRule |
empty |
static HoraRule |
hour |
static TelefoneRule |
phone |
static RequiredRule |
required |
| Modifier and Type | Method and Description |
|---|---|
static Rule |
length(int length) |
static Rule |
match(String regex) |
static Rule |
maxLength(int maxLength) |
static Rule |
maxRange(Number maxRange) |
static Rule |
minLength(int minLength) |
static Rule |
minRange(Number minRange) |
static Rule |
range(Number minRange,
Number maxRange) |
public static final AlfaNumericoRule alfaNumerico
public static final BeforeTodayRule beforeToday
public static final CepRule cep
public static final CnpjRule cnpj
public static final CnsRule cns
public static final CpfRule cpf
public static final EmailRule email
public static final EmptyRule empty
public static final HoraRule hour
public static final RequiredRule required
public static final TelefoneRule phone
Copyright © 2019. All rights reserved.