isDigit method

bool isDigit()

Implementation

bool isDigit() {
  return length == 1 && compareTo('0') >= 0 && compareTo('9') <= 0;
}