BvalSel.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 package org.gecode;
00010
00022 public enum BvalSel {
00023 BVAL_MIN,
00024 BVAL_MED,
00025 BVAL_MAX,
00026 BVAL_SPLIT_MIN,
00027 BVAL_SPLIT_MAX;
00028
00029 public final int swigValue() {
00030 return swigValue;
00031 }
00032
00033 public static BvalSel swigToEnum(int swigValue) {
00034 BvalSel[] swigValues = BvalSel.class.getEnumConstants();
00035 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00036 return swigValues[swigValue];
00037 for (BvalSel swigEnum : swigValues)
00038 if (swigEnum.swigValue == swigValue)
00039 return swigEnum;
00040 throw new IllegalArgumentException("No enum " + BvalSel.class + " with value " + swigValue);
00041 }
00042
00043 private BvalSel() {
00044 this.swigValue = SwigNext.next++;
00045 }
00046
00047 private BvalSel(int swigValue) {
00048 this.swigValue = swigValue;
00049 SwigNext.next = swigValue+1;
00050 }
00051
00052 private BvalSel(BvalSel swigEnum) {
00053 this.swigValue = swigEnum.swigValue;
00054 SwigNext.next = this.swigValue+1;
00055 }
00056
00057 private final int swigValue;
00058
00059 private static class SwigNext {
00060 private static int next = 0;
00061 }
00062 }
00063