Class Strings

java.lang.Object
net.tangly.commons.lang.Strings

public final class Strings extends Object
Utility class providing missing methods of the String class.
  • Method Details

    • firstOnlyUppercase

      public static String firstOnlyUppercase(@NotNull @NotNull String string)
    • isNullOrEmpty

      public static boolean isNullOrEmpty(String string)
    • isNullOrBlank

      public static boolean isNullOrBlank(String string)
    • blankToNull

      public static String blankToNull(String string)
    • emptyToNull

      public static String emptyToNull(String string)
    • nullToEmpty

      public static String nullToEmpty(String string)
    • trim

      public static String trim(String string)
    • normalizeToNull

      public static String normalizeToNull(String string)
    • nullSafeString

      public static String nullSafeString(String value)
    • nullSafeString

      public static String nullSafeString(String value, String defaultValue)
    • emptySafeString

      public static String emptySafeString(String value, String defaultValue)
    • emptySafeString

      public static String emptySafeString(String value)
    • toValid3ByteUTF8String

      public static String toValid3ByteUTF8String(String s)