class LoaderUtils {

  public static LongShort parseLongShort(String str) {
    switch (str.toUpperCase(Locale.ENGLISH)) {
      case "LONG":
      case "L":
        return LongShort.LONG;
      case "SHORT":
      case "S":
        return LongShort.SHORT;
      default:
        throw new IllegalArgumentException(
            "Unknown LongShort value, must be 'Long' or 'Short' but was '" + str + "'; " +
                "parser is case insensitive and also accepts 'L' and 'S'");
    }
  }

  private  LoaderUtils();

}