Generated on Fri Oct 6 16:26:44 2006 for Gecode/J by doxygen 1.4.7

SetBvalSel.java

Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.29
00004  *
00005  * Do not make changes to this file unless you know what you are doing--modify
00006  * the SWIG interface file instead.
00007  * ----------------------------------------------------------------------------- */
00008 
00009 package org.gecode;
00010 
00019 public enum SetBvalSel {
00020   SETBVAL_MIN,
00021   SETBVAL_MAX;
00022 
00023   public final int swigValue() {
00024     return swigValue;
00025   }
00026 
00027   public static SetBvalSel swigToEnum(int swigValue) {
00028     SetBvalSel[] swigValues = SetBvalSel.class.getEnumConstants();
00029     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00030       return swigValues[swigValue];
00031     for (SetBvalSel swigEnum : swigValues)
00032       if (swigEnum.swigValue == swigValue)
00033         return swigEnum;
00034     throw new IllegalArgumentException("No enum " + SetBvalSel.class + " with value " + swigValue);
00035   }
00036 
00037   private SetBvalSel() {
00038     this.swigValue = SwigNext.next++;
00039   }
00040 
00041   private SetBvalSel(int swigValue) {
00042     this.swigValue = swigValue;
00043     SwigNext.next = swigValue+1;
00044   }
00045 
00046   private SetBvalSel(SetBvalSel swigEnum) {
00047     this.swigValue = swigEnum.swigValue;
00048     SwigNext.next = this.swigValue+1;
00049   }
00050 
00051   private final int swigValue;
00052 
00053   private static class SwigNext {
00054     private static int next = 0;
00055   }
00056 }
00057