SingleText
SingleText Class
public class SingleText implements Input, Output { ... }
SingleText
is a simple wrapper class for a text string that implements both the Input
and Output
interfaces. It provides a factory method to create instances:
public static SingleText of(String text) { ... }
Example:
SingleText hello = SingleText.of("Hello World");
Last updated