class CsvLoaderUtils {

  public static EtdOptionType parseEtdOptionType(String str) {
    switch (str.toUpperCase(Locale.ENGLISH)) {
      case "AMERICAN":
      case "A":
        return EtdOptionType.AMERICAN;
      case "EUROPEAN":
      case "E":
        return EtdOptionType.EUROPEAN;
      default:
        throw new IllegalArgumentException(
            "Unknown EtdOptionType value, must be 'American' or 'European' but was '" + str + "'; " +
                "parser is case insensitive and also accepts 'A' and 'E'");
    }
  }

  private  CsvLoaderUtils();

}