Class StringUtils


  • public final class StringUtils
    extends Object
    Utility class containing string handling methods
    • Method Detail

      • getClassName

        public static String getClassName​(Object object)
        Returns object class name
        Parameters:
        object - Object to evaluate
        Returns:
        Object class name or "null"
      • stripStart

        public static String stripStart​(String str,
                                        String stripChars)
        Strips any of a set of characters from the start of a string.
        Parameters:
        str - String to remove characters from, may be null
        stripChars - Characters to remove, null treated as whitespace
        Returns:
        Stripped String
      • stripEnd

        public static String stripEnd​(String str,
                                      String stripChars)
        Strips any of a set of characters from the end of a string.
        Parameters:
        str - String to remove characters from, may be null
        stripChars - The set of characters to remove, null treated as whitespace
        Returns:
        Stripped String