Package org.dalesbred.internal.utils
Class StringUtils
java.lang.Object
org.dalesbred.internal.utils.StringUtils
Utilities for strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull String
capitalize
(@NotNull String s) Returns given string with its first letter in uppercase.static boolean
isEqualIgnoringCaseAndUnderscores
(@NotNull String s1, @NotNull String s2) Returns true if two strings are equal, apart from case differences and underscores.static @NotNull String
static @NotNull String
static @NotNull String
-
Method Details
-
capitalize
Returns given string with its first letter in uppercase. -
rightPad
-
truncate
-
truncate
-
isEqualIgnoringCaseAndUnderscores
public static boolean isEqualIgnoringCaseAndUnderscores(@NotNull @NotNull String s1, @NotNull @NotNull String s2) Returns true if two strings are equal, apart from case differences and underscores. Underscores in both sides are totally ignored.
-