Class StringHelper


  • @Deprecated
    public final class StringHelper
    extends Object
    Deprecated.
    Will be removed without replacement.
    Inspired from org.hibernate.util.StringHelper, but removing most methods as they are not needed for Hibernate Search.
    Author:
    Emmanuel Bernard, Sanne Grinovero
    • Method Detail

      • isNotEmpty

        public static boolean isNotEmpty​(String string)
        Deprecated.
      • isEmpty

        public static boolean isEmpty​(String string)
        Deprecated.
      • join

        public static String join​(Object[] array,
                                  String separator)
        Deprecated.
        Joins the elements of the given array to a string, separated by the given separator string.
        Parameters:
        array - the array to join
        separator - the separator string
        Returns:
        a string made up of the string representations of the given array's members, separated by the given separator string
      • join

        public static String join​(Iterable<?> iterable,
                                  String separator)
        Deprecated.
        Joins the elements of the given iterable to a string, separated by the given separator string.
        Parameters:
        iterable - the iterable to join
        separator - the separator string
        Returns:
        a string made up of the string representations of the given iterable members, separated by the given separator string
      • join

        public static String join​(Iterator<?> iterator,
                                  String separator)
        Deprecated.
        Joins the elements of the given iterator to a string, separated by the given separator string.
        Parameters:
        iterator - the iterator to join
        separator - the separator string
        Returns:
        a string made up of the string representations of the given iterator members, separated by the given separator string