Package: java.util.regex

## Class Pattern

- - ### Methods Summary

    Methods
    Return type | Name and parameters
    --- | ---
    `boolean` | `isCase(Object switchValue)` 'Case' implementation for the Pattern class, which allows testing a String against a number of regular expressions.

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

    `addShutdownHook`, `any`, `any`, `asBoolean`, `asType`, `average`, `collect`, `collect`, `collect`, `contains`, `count`, `dump`, `each`, `eachWithIndex`, `equals`, `every`, `every`, `find`, `find`, `findAll`, `findAll`, `findIndexOf`, `findIndexOf`, `findIndexValues`, `findIndexValues`, `findLastIndexOf`, `findLastIndexOf`, `findResult`, `findResult`, `flatten`, `getAt`, `getMetaClass`, `getMetaPropertyValues`, `getProperties`, `grep`, `grep`, `groupBy`, `groupBy`, `hasProperty`, `identity`, `inject`, `inject`, `inspect`, `invokeMethod`, `is`, `isCase`, `iterator`, `join`, `metaClass`, `print`, `print`, `printf`, `printf`, `println`, `println`, `println`, `putAt`, `respondsTo`, `respondsTo`, `setMetaClass`, `size`, `split`, `sprintf`, `sprintf`, `stream`, `sum`, `sum`, `tap`, `toArrayString`, `toSpreadMap`, `toString`, `use`, `use`, `use`, `with`, `with`, `withTraits`

- - ### Methods Detail

    - #### public boolean isCase(Object switchValue)

      'Case' implementation for the Pattern class, which allows testing a String against a number of regular expressions. For example:

          switch( str ) {
            case ~/one/ :
              // the regex 'one' matches the value of str
          }

      Note that this returns true for the case where both the pattern and the 'switch' values are `null`.
      Parameters:
        `switchValue` - the switch value
      Returns:
        true if the switchValue is deemed to match the caseValue
      Since:
        1.0