CONOPT
Loading...
Searching...
No Matches
ConstraintType.java
Go to the documentation of this file.
1
4
5/* ----------------------------------------------------------------------------
6 * This file was automatically generated by SWIG (https://www.swig.org).
7 * Version 4.3.1
8 *
9 * Do not make changes to this file unless you know what you are doing - modify
10 * the SWIG interface file instead.
11 * ----------------------------------------------------------------------------- */
12
13package jconopt;
14
23public final class ConstraintType {
27 public final static ConstraintType Eq = new ConstraintType("Eq", jconoptJNI.ConstraintType_Eq_get());
31 public final static ConstraintType GtEq = new ConstraintType("GtEq");
35 public final static ConstraintType LtEq = new ConstraintType("LtEq");
39 public final static ConstraintType Free = new ConstraintType("Free");
40
41 public final int swigValue() {
42 return swigValue;
43 }
44
45 public String toString() {
46 return swigName;
47 }
48
49 public static ConstraintType swigToEnum(int swigValue) {
50 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
51 return swigValues[swigValue];
52 for (int i = 0; i < swigValues.length; i++)
53 if (swigValues[i].swigValue == swigValue)
54 return swigValues[i];
55 throw new IllegalArgumentException("No enum " + ConstraintType.class + " with value " + swigValue);
56 }
57
58 private ConstraintType(String swigName) {
59 this.swigName = swigName;
60 this.swigValue = swigNext++;
61 }
62
63 private ConstraintType(String swigName, int swigValue) {
64 this.swigName = swigName;
65 this.swigValue = swigValue;
66 swigNext = swigValue+1;
67 }
68
69 private ConstraintType(String swigName, ConstraintType swigEnum) {
70 this.swigName = swigName;
71 this.swigValue = swigEnum.swigValue;
72 swigNext = this.swigValue+1;
73 }
74
75 private static ConstraintType[] swigValues = { Eq, GtEq, LtEq, Free };
76 private static int swigNext = 0;
77 private final int swigValue;
78 private final String swigName;
79}
80
static final ConstraintType Eq
static ConstraintType swigToEnum(int swigValue)
static final ConstraintType LtEq
static final ConstraintType GtEq
static final ConstraintType Free
static final native int ConstraintType_Eq_get()