Package io.sentry.util
Class StringUtils
- java.lang.Object
-
- io.sentry.util.StringUtils
-
@Internal public final class StringUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable java.lang.Stringcapitalize(@Nullable java.lang.String str)Returns a Capitalized String and all remaining chars to lower case.static @Nullable java.lang.StringgetStringAfterDot(@Nullable java.lang.String str)static @Nullable java.lang.StringremoveSurrounding(@Nullable java.lang.String str, @Nullable java.lang.String delimiter)Removes character specified by the delimiter parameter from the beginning and the end of the string.
-
-
-
Method Detail
-
getStringAfterDot
@Nullable public static @Nullable java.lang.String getStringAfterDot(@Nullable @Nullable java.lang.String str)
-
capitalize
@Nullable public static @Nullable java.lang.String capitalize(@Nullable @Nullable java.lang.String str)Returns a Capitalized String and all remaining chars to lower case. eg seSSioN = Session- Parameters:
str- the String to capitalize- Returns:
- the capitalized String or itself if empty or null
-
removeSurrounding
@Nullable public static @Nullable java.lang.String removeSurrounding(@Nullable @Nullable java.lang.String str, @Nullable @Nullable java.lang.String delimiter)Removes character specified by the delimiter parameter from the beginning and the end of the string.- Parameters:
str- the String to remove surrounding string fromdelimiter- the String that is meant to be removed- Returns:
- a string without delimiter character at the beginning and the end of the string
-
-