@ NullSafe public static boolean isDigits ( String value ) { for ( char chr : toCharArray ( value ) ) { if ( ! Character . isDigit ( chr ) ) { return false ; } } return hasText ( value ) ; }
Determines whether the String value represents a number i . e . consists entirely of digits .