private boolean validateDigits ( Object validationObject , Annotation annotate ) { if ( checkNullObject ( validationObject ) ) { return true ; } if ( checkvalidDigitTypes ( validationObject . getClass ( ) ) ) { if ( ! NumberUtils . isDigits ( toString ( validationObject ) ) ) { throwValidationException ( ( ( Digits ) annotate ) . message ( ) ) ; } } return true ; }
Checks whether a given value is is a number or not