IntRelType.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 package org.gecode;
00010
00011 public enum IntRelType {
00012 IRT_EQ,
00013 IRT_NQ,
00014 IRT_LQ,
00015 IRT_LE,
00016 IRT_GQ,
00017 IRT_GR;
00018
00019 public final int swigValue() {
00020 return swigValue;
00021 }
00022
00023 public static IntRelType swigToEnum(int swigValue) {
00024 IntRelType[] swigValues = IntRelType.class.getEnumConstants();
00025 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00026 return swigValues[swigValue];
00027 for (IntRelType swigEnum : swigValues)
00028 if (swigEnum.swigValue == swigValue)
00029 return swigEnum;
00030 throw new IllegalArgumentException("No enum " + IntRelType.class + " with value " + swigValue);
00031 }
00032
00033 private IntRelType() {
00034 this.swigValue = SwigNext.next++;
00035 }
00036
00037 private IntRelType(int swigValue) {
00038 this.swigValue = swigValue;
00039 SwigNext.next = swigValue+1;
00040 }
00041
00042 private IntRelType(IntRelType swigEnum) {
00043 this.swigValue = swigEnum.swigValue;
00044 SwigNext.next = this.swigValue+1;
00045 }
00046
00047 private final int swigValue;
00048
00049 private static class SwigNext {
00050 private static int next = 0;
00051 }
00052 }
00053