Package groovy.cli
Class TypedOption<T>
- Type Parameters:
T- the option value type
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,T>
Map-backed command-line option metadata with a typed default value.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
TypedOption
public TypedOption()
-
-
Method Details
-
defaultValue
Returns the configured default value.- Returns:
- the default value, if any
-