Package groovy.cli

Class TypedOption<T>

Type Parameters:
T - the option value type
All Implemented Interfaces:
Serializable, Cloneable, Map<String,T>

public class TypedOption<T> extends HashMap<String,T>
Map-backed command-line option metadata with a typed default value.
See Also:
  • Constructor Details

    • TypedOption

      public TypedOption()
  • Method Details

    • defaultValue

      public T defaultValue()
      Returns the configured default value.
      Returns:
      the default value, if any