Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
SolveStatus.java
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (https://www.swig.org).
3 * Version 4.2.1
4 *
5 * Do not make changes to this file unless you know what you are doing - modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9package com.google.ortools.modelbuilder;
10
11public enum SolveStatus {
25
26 public final int swigValue() {
27 return swigValue;
28 }
29
30 public static SolveStatus swigToEnum(int swigValue) {
31 SolveStatus[] swigValues = SolveStatus.class.getEnumConstants();
32 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
33 return swigValues[swigValue];
34 for (SolveStatus swigEnum : swigValues)
35 if (swigEnum.swigValue == swigValue)
36 return swigEnum;
37 throw new IllegalArgumentException("No enum " + SolveStatus.class + " with value " + swigValue);
38 }
39
40 @SuppressWarnings("unused")
41 private SolveStatus() {
42 this.swigValue = SwigNext.next++;
43 }
44
45 @SuppressWarnings("unused")
46 private SolveStatus(int swigValue) {
47 this.swigValue = swigValue;
48 SwigNext.next = swigValue+1;
49 }
50
51 @SuppressWarnings("unused")
52 private SolveStatus(SolveStatus swigEnum) {
53 this.swigValue = swigEnum.swigValue;
54 SwigNext.next = this.swigValue+1;
55 }
56
57 private final int swigValue;
58
59 private static class SwigNext {
60 private static int next = 0;
61 }
62}
63
static SolveStatus swigToEnum(int swigValue)