Added abstraction layer to DataSources

This commit is contained in:
Marvin Scham
2023-05-31 13:47:08 +02:00
parent 59109220e6
commit 2f1bd4407c
4 changed files with 125 additions and 60 deletions

View File

@@ -27,4 +27,14 @@ public final class FormattingUtil {
public static String formatEuro(final double amount) {
return String.format(Locale.GERMAN, "%,.2f", amount) + "";
}
/**
* Makes a string URL ready. For now, only spaces are replaced.
*
* @param str
* @return URL-ready string
*/
public static String urlEncode(final String str) {
return str.replace(" ", "+");
}
}