Class StringUtils


  • @ParametersAreNonnullByDefault
    public final class StringUtils
    extends java.lang.Object
    Utilities for stream data manipulations.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENCODING_UTF8  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean stringsEquals​(java.lang.String string, java.lang.String matchString)
      Compares two strings including nulls.
      static boolean stringsEqualsIgnoreCase​(java.lang.String string, java.lang.String matchString)
      Compares two strings ignoring case including nulls.
      • Methods inherited from class java.lang.Object

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

      • stringsEquals

        public static boolean stringsEquals​(@Nullable
                                            java.lang.String string,
                                            @Nullable
                                            java.lang.String matchString)
        Compares two strings including nulls.
        Parameters:
        string - first string
        matchString - second string
        Returns:
        true if both null or equals
      • stringsEqualsIgnoreCase

        public static boolean stringsEqualsIgnoreCase​(@Nullable
                                                      java.lang.String string,
                                                      @Nullable
                                                      java.lang.String matchString)
        Compares two strings ignoring case including nulls.
        Parameters:
        string - first string
        matchString - second string
        Returns:
        true if both null or equals ignoring case sensitivity