程序包 | 说明 |
---|---|
com.blade.validator |
限定符和类型 | 类和说明 |
---|---|
class |
SimpleValidation<T> |
限定符和类型 | 方法和说明 |
---|---|
default Validation<T> |
Validation.and(Validation<T> other) |
static Validation<String> |
Validators.contains(String c)
The input parameter must contain the string c. if yes, the check passes
|
static Validation<String> |
Validators.contains(String c,
String msg)
The input parameter must contain the string c. if yes, the check passes
|
static Validation<Integer> |
Validators.greaterThan(int min)
Determine if the input int parameter is greater than min. if yes, the check passes
|
static Validation<Integer> |
Validators.greaterThan(int min,
String msg)
Determine if the input int parameter is greater than min. if yes, the check passes
|
static Validation<String> |
Validators.isEmail()
Determine if the input parameter is a Email. if yes, the check passes
|
static Validation<String> |
Validators.isEmail(String msg)
Determine if the input parameter is a Email. if yes, the check passes.
|
static Validation<String> |
Validators.isURL()
Determine if the input parameter is a URL. if yes, the check passes
|
static Validation<String> |
Validators.isURL(String msg)
Determine if the input parameter is a URL. if yes, the check passes.
|
static Validation<String> |
Validators.length(int minSize,
int maxSize)
The length of the input string must be between minSize and maxSize. if yes, the check passes
|
static Validation<String> |
Validators.lessThan(int size)
The input string must be less than or equal to size. if yes, the check passes
|
static Validation<String> |
Validators.lessThan(int size,
String msg)
The input string must be less than or equal to size. if yes, the check passes
|
static Validation<Integer> |
Validators.lowerThan(int max)
Determine if the input int parameter is lower than max. if yes, the check passes
|
static Validation<Integer> |
Validators.lowerThan(int max,
String msg)
Determine if the input int parameter is lower than max. if yes, the check passes
|
static Validation<String> |
Validators.moreThan(int size)
The input string must be more than or equal to size. if yes, the check passes
|
static Validation<String> |
Validators.moreThan(int size,
String msg)
The input string must be more than or equal to size. if yes, the check passes
|
static Validation<String> |
Validators.notEmpty()
The input string is not empty. if yes, the check passes
|
static Validation<String> |
Validators.notEmpty(String msg)
The input string is not empty. if yes, the check passes
|
static <T> Validation<T> |
Validators.notNull()
The input object is not null. if yes, the check passes
|
static <T> Validation<T> |
Validators.notNull(String msg)
The input object is not null. if yes, the check passes
|
default Validation<T> |
Validation.or(Validation<T> other) |
static Validation<Integer> |
Validators.range(int min,
int max)
Determine if the input int parameter is it in a range. if yes, the check passes
|
限定符和类型 | 方法和说明 |
---|---|
default Validation<T> |
Validation.and(Validation<T> other) |
default Validation<T> |
Validation.or(Validation<T> other) |
Copyright © 2018. All rights reserved.