Class StringUtil


  • public class StringUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String trim​(java.lang.String string)
      Trims trailing whitespace from a string value.
      • Methods inherited from class java.lang.Object

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

      • trim

        public static java.lang.String trim​(java.lang.String string)

        Trims trailing whitespace from a string value. According to the PMML specification, the leading whitespace is significant, but the trailing whitespace isn't.

        See Also:
        Character.isWhitespace(char)