9package com.google.ortools.constraintsolver;
20 private transient long swigCPtr;
23 super(mainJNI.Constraint_SWIGUpcast(cPtr), cMemoryOwn);
28 return (obj ==
null) ? 0 : obj.swigCPtr;
35 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
37 obj.swigCMemOwn =
false;
43 @SuppressWarnings({
"deprecation",
"removal"})
52 mainJNI.delete_Constraint(swigCPtr);
64 mainJNI.Constraint_post(swigCPtr,
this);
72 mainJNI.Constraint_initialPropagate(swigCPtr,
this);
76 return mainJNI.Constraint_toString(swigCPtr,
this);
84 mainJNI.Constraint_postAndPropagate(swigCPtr,
this);
98 return mainJNI.Constraint_isCastConstraint(swigCPtr,
this);
107 long cPtr = mainJNI.Constraint_var(swigCPtr,
this);
108 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);