java.lang.Object
org.eclipse.persistence.internal.helper.StringHelper

public class StringHelper extends Object
INTERNAL:

Purpose: Define any useful String constants and methods that are missing from the base Java.

  • Field Details

  • Constructor Details

    • StringHelper

      public StringHelper()
  • Method Details

    • nonNullString

      public static final String nonNullString(String str)
      Never return null but replace it with "null" String.
      Parameters:
      str - String to be checked for null and eventually replaced with "null" String.
      Returns:
      Provided string when not null or "null" String.
    • isBlank

      public static final boolean isBlank(String str)
      Checks if String is null, is empty ("") or contains white spaces only.
      Parameters:
      str - String to be checked.
      Returns:
      Value of true if @link String} is null, is empty ("") or contains white spaces only or false otherwise