replaceSeparator method
- String newTextValue
Replaces a "." by a "," or a "," by a ".".
Implementation
String replaceSeparator(String newTextValue) {
if (newTextValue.contains(_separatorToReplace)) {
return newTextValue.replaceAll(_separatorToReplace, _decimalSeparator);
} else {
return newTextValue;
}
}