001/* ----------------------------------------------------------------------------
002 * This file was automatically generated by SWIG (https://www.swig.org).
003 * Version 4.1.1
004 *
005 * Do not make changes to this file unless you know what you are doing - modify
006 * the SWIG interface file instead.
007 * ----------------------------------------------------------------------------- */
008
009package org.quantlib;
010
011public final class Month {
012  public final static Month January = new Month("January", 1);
013  public final static Month February = new Month("February", 2);
014  public final static Month March = new Month("March", 3);
015  public final static Month April = new Month("April", 4);
016  public final static Month May = new Month("May", 5);
017  public final static Month June = new Month("June", 6);
018  public final static Month July = new Month("July", 7);
019  public final static Month August = new Month("August", 8);
020  public final static Month September = new Month("September", 9);
021  public final static Month October = new Month("October", 10);
022  public final static Month November = new Month("November", 11);
023  public final static Month December = new Month("December", 12);
024
025  public final int swigValue() {
026    return swigValue;
027  }
028
029  public String toString() {
030    return swigName;
031  }
032
033  public static Month swigToEnum(int swigValue) {
034    if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
035      return swigValues[swigValue];
036    for (int i = 0; i < swigValues.length; i++)
037      if (swigValues[i].swigValue == swigValue)
038        return swigValues[i];
039    throw new IllegalArgumentException("No enum " + Month.class + " with value " + swigValue);
040  }
041
042  private Month(String swigName) {
043    this.swigName = swigName;
044    this.swigValue = swigNext++;
045  }
046
047  private Month(String swigName, int swigValue) {
048    this.swigName = swigName;
049    this.swigValue = swigValue;
050    swigNext = swigValue+1;
051  }
052
053  private Month(String swigName, Month swigEnum) {
054    this.swigName = swigName;
055    this.swigValue = swigEnum.swigValue;
056    swigNext = this.swigValue+1;
057  }
058
059  private static Month[] swigValues = { January, February, March, April, May, June, July, August, September, October, November, December };
060  private static int swigNext = 0;
061  private final int swigValue;
062  private final String swigName;
063}
064