Package cloud.commandframework.util
Class StringUtils
java.lang.Object
cloud.commandframework.util.StringUtils
@API(status=INTERNAL,
consumers="cloud.commandframework.*")
public final class StringUtils
extends Object
String utilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
countCharOccurrences
(@NonNull String haystack, char needle) Count the occurrences of a character in a string
-
Method Details
-
countCharOccurrences
Count the occurrences of a character in a string- Parameters:
haystack
- The string to search inneedle
- The character to count for- Returns:
- Number of occurrences
-