Tag Archives: String

String Deduplication zum Sparen von Speicherplatz in Java 8

Strings nehmen in den meisten Anwendungen den Großteil des Speicherplatzes ein. Wobei wir es hierbei nicht selten mit Duplikaten zu tun haben. Häufiger Verursacher ist hierbei das Laden von Objekten aus externen Quellen wie Datenbanken oder das Parsen von externen … Continue reading

Posted in Java Basics, Java Runtimes - VM, Appserver & Cloud | Tagged , , , | Leave a comment

TypeScript – Accessing Enum Values via a String

Starting with TypeScript 0.9.7, accessing an enum value via a string got a little bit inconveniant. Before 0.9.7 you could do In 0.9.7, this will report “Index signature of object type implicitly has an ‘any’ type”. According to Microsoft, this … Continue reading

Posted in Web as a Platform | Tagged , , , | Leave a comment

Split comma-separated Strings in Java

Shortly, I saw some code like this to work with comma separated lists: The code uses String.split(“,”) to split the strings at commas and String.trim() to remove unwanted whitespaces. But theres’s a much more elegant way to do that in … Continue reading

Posted in Java Basics | Tagged , , , , , | 5 Comments