9package com.google.ortools.constraintsolver;
17 private transient long swigCPtr;
20 super(mainJNI.CastConstraint_SWIGUpcast(cPtr), cMemoryOwn);
25 return (obj ==
null) ? 0 : obj.swigCPtr;
32 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
34 obj.swigCMemOwn =
false;
40 @SuppressWarnings({
"deprecation",
"removal"})
49 mainJNI.delete_CastConstraint(swigCPtr);
57 long cPtr = mainJNI.CastConstraint_target_var(swigCPtr,
this);
58 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);