Class Strings


  • public final class Strings
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String escapeHtml​(java.lang.String text)  
      static java.lang.String getValueOrEmpty​(java.lang.String string)
      Deprecated.
      - This method stands deprecated as of TestNG 7.6.0
      static boolean isNotNullAndNotEmpty​(java.lang.String string)  
      static boolean isNullOrEmpty​(java.lang.String string)  
      static java.lang.String join​(java.lang.String delimiter, java.lang.String[] parts)
      Deprecated.
      - This is deprecated of TestNG 7.6.0
      static java.lang.String repeat​(java.lang.String text, int count)
      Deprecated.
      - This method stands deprecated as of TestNG 7.6.0
      static java.lang.String valueOf​(java.util.Map<?,​?> m)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • repeat

        @Deprecated
        public static java.lang.String repeat​(java.lang.String text,
                                              int count)
        Deprecated.
        - This method stands deprecated as of TestNG 7.6.0
      • isNullOrEmpty

        public static boolean isNullOrEmpty​(java.lang.String string)
      • isNotNullAndNotEmpty

        public static boolean isNotNullAndNotEmpty​(java.lang.String string)
      • getValueOrEmpty

        @Deprecated
        public static java.lang.String getValueOrEmpty​(java.lang.String string)
        Deprecated.
        - This method stands deprecated as of TestNG 7.6.0
        Parameters:
        string - - The input String.
        Returns:
        - Returns an empty string if the input String is null (or) empty, else it returns back the input string.
      • escapeHtml

        public static java.lang.String escapeHtml​(java.lang.String text)
      • valueOf

        public static java.lang.String valueOf​(java.util.Map<?,​?> m)
      • join

        @Deprecated
        public static java.lang.String join​(java.lang.String delimiter,
                                            java.lang.String[] parts)
        Deprecated.
        - This is deprecated of TestNG 7.6.0