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 String[]` | `EMPTY_STRING_ARRAY` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `CommonsUtils()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    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 Detail

    - #### EMPTY_STRING_ARRAY

          public static final String[] EMPTY_STRING_ARRAY

  - ### Constructor Detail

    - #### CommonsUtils

          public CommonsUtils()

  - ### Method Detail

    - #### 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).