Class StringUtils


  • public final class StringUtils
    extends java.lang.Object
    Contains utilities related to strings.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean endsWithWhitespace(java.lang.CharSequence charSeq)
      Finds out if the given character sequence ends with a whitespace character.
      static boolean startsWithWhitespace(java.lang.CharSequence charSeq)
      Finds out if the given character sequence starts with a whitespace character.
      • Methods inherited from class java.lang.Object

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

      • startsWithWhitespace

        public static boolean startsWithWhitespace(java.lang.CharSequence charSeq)
        Finds out if the given character sequence starts with a whitespace character.
        Returns:
        true if the given character sequence is not empty and starts with a whitespace character; false otherwise
        Throws:
        java.lang.NullPointerException - if the given character sequence is null
      • endsWithWhitespace

        public static boolean endsWithWhitespace(java.lang.CharSequence charSeq)
        Finds out if the given character sequence ends with a whitespace character.
        Returns:
        true if the given character sequence is not empty and ends with a whitespace character; false otherwise
        Throws:
        java.lang.NullPointerException - if the given character sequence is null