CONOPT
Loading...
Searching...
No Matches
Sense.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
21public final class Sense {
25 public final static Sense Minimize = new Sense("Minimize", jconoptJNI.Sense_Minimize_get());
29 public final static Sense Maximize = new Sense("Maximize", jconoptJNI.Sense_Maximize_get());
30
31 public final int swigValue() {
32 return swigValue;
33 }
34
35 public String toString() {
36 return swigName;
37 }
38
39 public static Sense swigToEnum(int swigValue) {
40 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
41 return swigValues[swigValue];
42 for (int i = 0; i < swigValues.length; i++)
43 if (swigValues[i].swigValue == swigValue)
44 return swigValues[i];
45 throw new IllegalArgumentException("No enum " + Sense.class + " with value " + swigValue);
46 }
47
48 private Sense(String swigName) {
49 this.swigName = swigName;
50 this.swigValue = swigNext++;
51 }
52
53 private Sense(String swigName, int swigValue) {
54 this.swigName = swigName;
55 this.swigValue = swigValue;
56 swigNext = swigValue+1;
57 }
58
59 private Sense(String swigName, Sense swigEnum) {
60 this.swigName = swigName;
61 this.swigValue = swigEnum.swigValue;
62 swigNext = this.swigValue+1;
63 }
64
65 private static Sense[] swigValues = { Minimize, Maximize };
66 private static int swigNext = 0;
67 private final int swigValue;
68 private final String swigName;
69}
70
static final Sense Maximize
Definition Sense.java:29
static Sense swigToEnum(int swigValue)
Definition Sense.java:39
static final Sense Minimize
Definition Sense.java:25
String toString()
Definition Sense.java:35
final int swigValue()
Definition Sense.java:31
static final native int Sense_Maximize_get()
static final native int Sense_Minimize_get()