Class StringUtil


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

      Constructors 
      Constructor Description
      StringUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String[] splitCommaSeparated​(java.lang.String s)
      Splits a comma-separated string into an array of String values.
      • Methods inherited from class java.lang.Object

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

      • StringUtil

        public StringUtil()
    • Method Detail

      • splitCommaSeparated

        public static java.lang.String[] splitCommaSeparated​(java.lang.String s)
        Splits a comma-separated string into an array of String values. Whitespace around the commas is removed. Null or empty values will return a zero-element array.
        Parameters:
        s - The string to split by commas.
        Returns:
        An array of String values.