Class KeyValueMapParameter.StringToStringMap

  • All Implemented Interfaces:
    com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<com.google.common.collect.ImmutableMap<java.lang.String,​java.lang.String>>
    Enclosing class:
    KeyValueMapParameter<K,​V>

    public static class KeyValueMapParameter.StringToStringMap
    extends KeyValueMapParameter<java.lang.String,​java.lang.String>
    Combined converter and validator class for string-to-string Map argument strings.
    • Constructor Detail

      • StringToStringMap

        public StringToStringMap()
    • Method Detail

      • parseKey

        protected java.lang.String parseKey​(java.lang.String rawKey)
        Description copied from class: KeyValueMapParameter
        Override to define how to parse rawKey into an object of type K.
        Specified by:
        parseKey in class KeyValueMapParameter<java.lang.String,​java.lang.String>
      • parseValue

        protected java.lang.String parseValue​(java.lang.String value)
        Description copied from class: KeyValueMapParameter
        Override to define how to parse rawValue into an object of type V.
        Specified by:
        parseValue in class KeyValueMapParameter<java.lang.String,​java.lang.String>