Package org.apache.tapestry5.commons.util

# Class CommonsUtils

java.lang.Object
org.apache.tapestry5.commons.util.CommonsUtils

public class CommonsUtils extends Object
Some utility methods used in different Tapestry subprojects.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String[]`
  `EMPTY_STRING_ARRAY`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CommonsUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static boolean`
  `isBlank(String input)`
  Returns true if the input is null, or is a zero length string (excluding leading/trailing whitespace).
  `static String[]`
  `splitAtCommas(String value)`
  Splits a value around commas.
  `static String[]`
  `splitPath(String path)`
  Splits a path at each slash.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### EMPTY_STRING_ARRAY

    public static final String[] EMPTY_STRING_ARRAY

- ## Constructor Details

  - ### CommonsUtils

    public CommonsUtils()

- ## Method Details

  - ### splitPath

    public static String[] splitPath(String path)
    Splits a path at each slash.

  - ### splitAtCommas

    public static String[] splitAtCommas(String value)
    Splits a value around commas. Whitespace around the commas is removed, as is leading and trailing whitespace.
    Since:
      5.1.0.0

  - ### isBlank

    public static boolean isBlank(String input)
    Returns true if the input is null, or is a zero length string (excluding leading/trailing whitespace).