Java Reference

Java Reference

RoutingModelVisitor.java
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 4.0.2
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.constraintsolver;
10
14public class RoutingModelVisitor extends BaseObject {
15 private transient long swigCPtr;
16
17 public RoutingModelVisitor(long cPtr, boolean cMemoryOwn) {
18 super(mainJNI.RoutingModelVisitor_SWIGUpcast(cPtr), cMemoryOwn);
19 swigCPtr = cPtr;
20 }
21
22 protected static long getCPtr(RoutingModelVisitor obj) {
23 return (obj == null) ? 0 : obj.swigCPtr;
24 }
25
26 @SuppressWarnings("deprecation")
27 protected void finalize() {
28 delete();
29 }
30
31 public synchronized void delete() {
32 if (swigCPtr != 0) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
35 mainJNI.delete_RoutingModelVisitor(swigCPtr);
36 }
37 swigCPtr = 0;
38 }
39 super.delete();
40 }
41
45 public static String getKLightElement() {
46 return mainJNI.RoutingModelVisitor_kLightElement_get();
47 }
48
49 public static String getKLightElement2() {
50 return mainJNI.RoutingModelVisitor_kLightElement2_get();
51 }
52
53 public static String getKRemoveValues() {
54 return mainJNI.RoutingModelVisitor_kRemoveValues_get();
55 }
56
58 this(mainJNI.new_RoutingModelVisitor(), true);
59 }
60
61}
A BaseObject is the root of all reversibly allocated objects.
Definition: BaseObject.java:16