public final class StringUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static @NonNull String |
combineSplit(@NonNull String[] split,
int start)
Combines an array into a space-delimited string from a starting index.
|
static @NonNull String |
combineSplit(@NonNull String[] split,
int start,
int length,
@NonNull String delimiter)
Combines an array into a super string!
|
static @NonNull String |
filterPassword(@NonNull String password)
Converts all characters of a password to asterisks.
|
static @NonNull String |
makeRainbow(@NonNull String message)
Turns a message into a rainbow.
|
static @NonNull String |
makeRainbow(@NonNull String message,
@NonNull Format[] colorOrder)
Turns a message into a rainbow.
|
static @NonNull String |
toLowerCase(@NonNull ClientLinked linked,
@NonNull String input)
Converts a given String to lowercase per spec.
|
static @NonNull String |
toLowerCase(@NonNull Client client,
@NonNull String input)
Converts a given String to lowercase per spec.
|
public static @NonNull String combineSplit(@NonNull String[] split, int start, int length, @NonNull String delimiter)
Invalid index or length, or a length too long for the array, will be ignored.
split - the split arraystart - index at which to startlength - how many elements to includedelimiter - delimiterIllegalArgumentException - for a null array, a length less than
1, an index less than 0, or a null delimiterpublic static @NonNull String combineSplit(@NonNull String[] split, int start)
Invalid starting index will result
split - the split arraystart - index at which to startIllegalArgumentException - for null array or index less than 0public static @NonNull String makeRainbow(@NonNull String message)
message - message to become rainbowIllegalArgumentException - for null messagepublic static @NonNull String makeRainbow(@NonNull String message, @NonNull Format[] colorOrder)
message - message to become rainbowcolorOrder - order of colors to sendIllegalArgumentException - for null parameters, null entries in
array, or non-color entries in arraypublic static @NonNull String toLowerCase(@NonNull ClientLinked linked, @NonNull String input)
linked - the client providerinput - string to be lowercasedIllegalArgumentException - if client provider is nullIllegalArgumentException - if input is nullCaseMapping.toLowerCase(java.lang.String)public static @NonNull String toLowerCase(@NonNull Client client, @NonNull String input)
client - the clientinput - string to be lowercasedIllegalArgumentException - if client is nullIllegalArgumentException - if input is nullCaseMapping.toLowerCase(java.lang.String)Copyright © 2013–2021 Kitteh. All rights reserved.