Class KeyValueMapParameter.StringToIntegerMap

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

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

      • StringToIntegerMap

        public StringToIntegerMap()
    • 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.Integer>
      • parseValue

        protected java.lang.Integer 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.Integer>