Package google.registry.tools.params
Class KeyValueMapParameter.CurrencyUnitToStringMap
java.lang.Object
google.registry.tools.params.ParameterConverterValidator<com.google.common.collect.ImmutableMap<org.joda.money.CurrencyUnit,String>>
google.registry.tools.params.KeyValueMapParameter<org.joda.money.CurrencyUnit,String>
google.registry.tools.params.KeyValueMapParameter.CurrencyUnitToStringMap
- All Implemented Interfaces:
com.beust.jcommander.IParameterValidator
,com.beust.jcommander.IStringConverter<com.google.common.collect.ImmutableMap<org.joda.money.CurrencyUnit,
String>>
- Enclosing class:
KeyValueMapParameter<K,
V>
public static class KeyValueMapParameter.CurrencyUnitToStringMap
extends KeyValueMapParameter<org.joda.money.CurrencyUnit,String>
Combined converter and validator class for currency unit-to-string 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
Modifier and TypeMethodDescriptionprotected org.joda.money.CurrencyUnit
Override to define how to parse rawKey into an object of type K.protected String
parseValue
(String value) Override to define how to parse rawValue into an object of type V.Methods inherited from class google.registry.tools.params.KeyValueMapParameter
convert, processMap
Methods inherited from class google.registry.tools.params.ParameterConverterValidator
validate
-
Constructor Details
-
CurrencyUnitToStringMap
public CurrencyUnitToStringMap()
-
-
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<org.joda.money.CurrencyUnit,
String>
-
parseValue
Description copied from class:KeyValueMapParameter
Override to define how to parse rawValue into an object of type V.- Specified by:
parseValue
in classKeyValueMapParameter<org.joda.money.CurrencyUnit,
String>
-