Class Strings

java.lang.Object
net.codecrete.qrbill.generator.Strings

public class Strings extends Object
Helper function for processing strings.
  • Method Details

    • trimmed

      public static String trimmed(String value)
      Returns string with leading and trailing whitespace removed

      For empty strings or null, null is returned.

      Parameters:
      value - string to trim or null
      Returns:
      trimmed string
    • whiteSpaceRemoved

      public static String whiteSpaceRemoved(String value)
      Returns string without white space
      Parameters:
      value - string to process (non null)
      Returns:
      resulting string with all whitespace removed
    • isNullOrEmpty

      public static boolean isNullOrEmpty(String value)
      Tests if a string is null or empty

      A string consisting of all whitespace is considered empty.

      Parameters:
      value - string to test
      Returns:
      boolean indicating if string is null or empty