9package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
15 super(mainJNI.BaseIntExpr_SWIGUpcast(cPtr), cMemoryOwn);
20 return (obj ==
null) ? 0 : obj.swigCPtr;
27 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
29 obj.swigCMemOwn =
false;
35 @SuppressWarnings({
"deprecation",
"removal"})
44 mainJNI.delete_BaseIntExpr(swigCPtr);
52 long cPtr = mainJNI.BaseIntExpr_var(swigCPtr,
this);
53 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
57 long cPtr = mainJNI.BaseIntExpr_castToVar(swigCPtr,
this);
58 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);