@FunctionalInterface public interface Cutter
Modifier and Type | Interface and Description |
---|---|
static class |
Cutter.DefaultWordCutter
Cuts by words, unless word is too long.
|
Modifier and Type | Method and Description |
---|---|
@NonNull List<String> |
split(@NonNull String message,
@NonNegative int size)
Splits a message into items no longer than the size limit.
|
@NonNull List<String> split(@NonNull String message, @NonNegative int size)
message
- message to splitsize
- size limit per returned stringIllegalArgumentException
- if size is less than 1 or if
message is nullCopyright © 2013–2021 Kitteh. All rights reserved.