Class CaseInsensitiveEnumStringArgumentType<T extends Enum<T>>

java.lang.Object
net.sourceforge.argparse4j.impl.type.CaseInsensitiveEnumArgumentType<T>
net.sourceforge.argparse4j.impl.type.CaseInsensitiveEnumStringArgumentType<T>
Type Parameters:
T - Type of enum
All Implemented Interfaces:
ArgumentType<T>, MetavarInference

public class CaseInsensitiveEnumStringArgumentType<T extends Enum<T>> extends CaseInsensitiveEnumArgumentType<T>

ArgumentType subclass for enum type using case-insensitive matching of values.

Uses Enum.toString() instead of Enum.name() as the String representation of the enum. For enums that do not override Enum.toString(), this behaves the same as CaseInsensitiveEnumNameArgumentType.

Since:
0.8.0
  • Constructor Details

    • CaseInsensitiveEnumStringArgumentType

      public CaseInsensitiveEnumStringArgumentType(Class<T> type)
  • Method Details