Class StringUtility

java.lang.Object
megamek.codeUtilities.StringUtility

public class StringUtility extends Object
  • Constructor Details

    • StringUtility

      public StringUtility()
  • Method Details

    • isNullOrBlank

      public static boolean isNullOrBlank(@Nullable String text)
      Parameters:
      text - The string to be evaluated, which may be null
      Returns:
      true if the passed in value is either null or a blank string
    • isNullOrBlank

      public static boolean isNullOrBlank(@Nullable StringBuilder text)
      Parameters:
      text - The string to be evaluated, which may be null
      Returns:
      true if the passed in StringBuilder is null, or its contents are null or blank