private boolean isDigit(char value){
  return Character.isDigit(value);
}

private boolean isDigit ( char value ) { return Character . isDigit ( value ) ; }
this is used to determine if the provided character is a digit . only digits can be used within a segment index , so this is used when parsing the index to ensure all characters are valid .
