Class EnumParameter<T extends Enum<T>>

java.lang.Object
google.registry.tools.params.ParameterConverterValidator<T>
google.registry.tools.params.EnumParameter<T>
All Implemented Interfaces:
com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<T>
Direct Known Subclasses:
TldStateParameter

public abstract class EnumParameter<T extends Enum<T>> extends ParameterConverterValidator<T>
Base class for Enum-based parameters.

This is not necessary for single-value Enum parameters (i.e. arity = 1) as JCommander natively supports them, but is necessary for variable-arity (List<Enum>) parameters.

  • Constructor Details

    • EnumParameter

      public EnumParameter()
  • Method Details