Package org.kigalisim.util
Class EmulatedStringJoiner
java.lang.Object
org.kigalisim.util.EmulatedStringJoiner
A WebAssembly-compatible string joiner that builds sequences with delimiters.
Provides an alternative to Java's StringJoiner for environments where it is unavailable.
-
Constructor Summary
ConstructorsConstructorDescriptionEmulatedStringJoiner(CharSequence delimiter) Constructs a new EmulatedStringJoiner with the specified delimiter. -
Method Summary
Modifier and TypeMethodDescriptionadd(CharSequence newElement) Adds a new element to the string sequence.toString()Returns the string representation of this joiner.
-
Constructor Details
-
EmulatedStringJoiner
Constructs a new EmulatedStringJoiner with the specified delimiter.- Parameters:
delimiter- The delimiter to be used between joined strings
-
-
Method Details