Package: groovy.cli

## [Java] Class TypedOption<T>

- groovy.cli.TypedOption

-     public class TypedOption<T>
      extends HashMap

  Map-backed command-line option metadata with a typed default value.

  Type Parameters:
    `T` - the option value type

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public T` | `defaultValue()` Returns the configured default value.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class HashMap` | `clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getClass, getOrDefault, hashCode, isEmpty, keySet, merge, notify, notifyAll, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, toString, values, wait, wait, wait`

- - ### Method Detail

    - #### public T defaultValue()

      Returns the configured default value.

      Returns:
        the default value, if any