Package org.graylog2.shared.utilities
Class StringUtils
java.lang.Object
org.graylog2.shared.utilities.StringUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
CallsString.format(Locale, String, Object...)
with the given arguments with a locale value ofLocale.ENGLISH
.static String
humanReadableByteCount
(long bytes) splitByComma
(List<String> values) splitByComma
(Set<String> values) static String
toLowerCase
(String value) CallsString.toLowerCase(Locale)
on the given string with a locale value ofLocale.ENGLISH
.static String
toUpperCase
(String value) CallsString.toUpperCase(Locale)
on the given string with a locale value ofLocale.ENGLISH
.
-
Method Details
-
f
CallsString.format(Locale, String, Object...)
with the given arguments with a locale value ofLocale.ENGLISH
.- Parameters:
format
- the format stringargs
- the format arguments- Returns:
- the formatted string
-
toUpperCase
CallsString.toUpperCase(Locale)
on the given string with a locale value ofLocale.ENGLISH
.- Parameters:
value
- the value- Returns:
- the value in upper case
- Throws:
IllegalArgumentException
- when given value is null
-
toLowerCase
CallsString.toLowerCase(Locale)
on the given string with a locale value ofLocale.ENGLISH
.- Parameters:
value
- the value- Returns:
- the value in lower case
- Throws:
IllegalArgumentException
- when given value is null
-
humanReadableByteCount
-
splitByComma
-
splitByComma
-