Package google.registry.tools.params
Class KeyValueMapParameter.StringToIntegerMap
java.lang.Object
google.registry.tools.params.ParameterConverterValidator<com.google.common.collect.ImmutableMap<String,Integer>>
google.registry.tools.params.KeyValueMapParameter<String,Integer>
google.registry.tools.params.KeyValueMapParameter.StringToIntegerMap
- All Implemented Interfaces:
com.beust.jcommander.IParameterValidator
,com.beust.jcommander.IStringConverter<com.google.common.collect.ImmutableMap<String,
Integer>>
- Enclosing class:
KeyValueMapParameter<K,
V>
public static class KeyValueMapParameter.StringToIntegerMap
extends KeyValueMapParameter<String,Integer>
Combined converter and validator class for string-to-integer Map argument strings.
-
Nested Class Summary
Nested classes/interfaces inherited from class google.registry.tools.params.KeyValueMapParameter
KeyValueMapParameter.CurrencyUnitToStringMap, KeyValueMapParameter.StringToIntegerMap, KeyValueMapParameter.StringToRegistrarRoleMap, KeyValueMapParameter.StringToStringMap
-
Constructor Summary
-
Method Summary
Methods inherited from class google.registry.tools.params.KeyValueMapParameter
convert, processMap
Methods inherited from class google.registry.tools.params.ParameterConverterValidator
validate
-
Constructor Details
-
StringToIntegerMap
public StringToIntegerMap()
-
-
Method Details
-
parseKey
Description copied from class:KeyValueMapParameter
Override to define how to parse rawKey into an object of type K.- Specified by:
parseKey
in classKeyValueMapParameter<String,
Integer>
-
parseValue
Description copied from class:KeyValueMapParameter
Override to define how to parse rawValue into an object of type V.- Specified by:
parseValue
in classKeyValueMapParameter<String,
Integer>
-