content: /* ----------------------------------------------------------------------------
   * This file was automatically generated by SWIG (https://www.swig.org).
   * Version 4.3.1
   *
   * Do not make changes to this file unless you know what you are doing - modify
   * the SWIG interface file instead.
   * ----------------------------------------------------------------------------- */
  
  package org.libtorrent4j.swig;
  
  public final class alert_priority {
    public final static alert_priority normal = new alert_priority("normal", libtorrent_jni.alert_priority_normal_get());
    public final static alert_priority high = new alert_priority("high");
    public final static alert_priority critical = new alert_priority("critical");
    public final static alert_priority meta = new alert_priority("meta");
  
    public final int swigValue() {
      return swigValue;
    }
  
    public String toString() {
      return swigName;
    }
  
    public static alert_priority swigToEnum(int swigValue) {
      if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
        return swigValues[swigValue];
      for (int i = 0; i < swigValues.length; i++)
        if (swigValues[i].swigValue == swigValue)
          return swigValues[i];
      throw new IllegalArgumentException("No enum " + alert_priority.class + " with value " + swigValue);
    }
  
    private alert_priority(String swigName) {
      this.swigName = swigName;
      this.swigValue = swigNext++;
    }
  
    private alert_priority(String swigName, int swigValue) {
      this.swigName = swigName;
      this.swigValue = swigValue;
      swigNext = swigValue+1;
    }
  
    private alert_priority(String swigName, alert_priority swigEnum) {
      this.swigName = swigName;
      this.swigValue = swigEnum.swigValue;
      swigNext = this.swigValue+1;
    }
  
    private static alert_priority[] swigValues = { normal, high, critical, meta };
    private static int swigNext = 0;
    private final int swigValue;
    private final String swigName;
  }
  
  