public class NumberValidationsWithErrorCode extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Number> |
isByte(String errorCode)
provides a validation which validates if a values matches to a byte.
|
static <T extends Number> |
isInt(String errorCode)
provides a validation which validates if a values matches to an integer.
|
static <T extends Number> |
isShort(String errorCode)
provides a validation which validates if a values matches to a short.
|
public static <T extends Number> Validation<T> isInt(String errorCode)
T - the type of NumbererrorCode - in the case the validation violates this code is reported in the resultpublic static <T extends Number> Validation<T> isByte(String errorCode)
T - the type of NumbererrorCode - in the case the validation violates this code is reported in the resultpublic static <T extends Number> Validation<T> isShort(String errorCode)
T - the type of NumbererrorCode - in the case the validation violates this code is reported in the resultCopyright © 2018. All rights reserved.