public class WordWrapper
extends Object
-
Constructor Summary
Constructors
-
Method Summary
Breaks a String, using the passed length and respecting color codes, into a List of Strings
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
WordWrapper
public WordWrapper(@NotNull
@NotNull String rawString,
int lineLength)
-
Method Details
-
wrap
@NotNull
public @NotNull String[] wrap()
-
split
@NotNull
public static @NotNull List<String> split(@NotNull
@NotNull String input,
int length)
Breaks a String, using the passed length and respecting color codes, into a List of Strings
- Parameters:
input - the input
- Returns:
- the split input