Class TransitionListParameter<V>

java.lang.Object
google.registry.tools.params.ParameterConverterValidator<com.google.common.collect.ImmutableMap<org.joda.time.DateTime,V>>
google.registry.tools.params.KeyValueMapParameter<org.joda.time.DateTime,V>
google.registry.tools.params.TransitionListParameter<V>
All Implemented Interfaces:
com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<com.google.common.collect.ImmutableMap<org.joda.time.DateTime,V>>
Direct Known Subclasses:
TransitionListParameter.BillingCostTransitions, TransitionListParameter.FeatureStatusTransitions, TransitionListParameter.TldStateTransitions, TransitionListParameter.TokenStatusTransitions

public abstract class TransitionListParameter<V> extends KeyValueMapParameter<org.joda.time.DateTime,V>
Combined converter and validator class for transition list JCommander argument strings.
  • Constructor Details

    • TransitionListParameter

      public TransitionListParameter()
  • Method Details

    • parseKey

      protected final org.joda.time.DateTime parseKey(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<org.joda.time.DateTime,V>
    • processMap

      protected final com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,V> processMap(com.google.common.collect.ImmutableMap<org.joda.time.DateTime,V> map)
      Description copied from class: KeyValueMapParameter
      Override to perform any post-processing on the map.
      Overrides:
      processMap in class KeyValueMapParameter<org.joda.time.DateTime,V>