9package com.google.ortools.constraintsolver;
16 private transient long swigCPtr;
18 public Decision(
long cPtr,
boolean cMemoryOwn) {
19 super(mainJNI.Decision_SWIGUpcast(cPtr), cMemoryOwn);
24 return (obj ==
null) ? 0 : obj.swigCPtr;
31 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
33 obj.swigCMemOwn =
false;
39 @SuppressWarnings({
"deprecation",
"removal"})
48 mainJNI.delete_Decision(swigCPtr);
62 mainJNI.Decision_change_ownership(
this, swigCPtr,
false);
67 mainJNI.Decision_change_ownership(
this, swigCPtr,
true);
71 this(mainJNI.new_Decision(),
true);
72 mainJNI.Decision_director_connect(
this, swigCPtr,
true,
true);
86 mainJNI.Decision_refute(swigCPtr,
this,
Solver.
getCPtr(s), s);
90 return (getClass() ==
Decision.class) ? mainJNI.Decision_toString(swigCPtr,
this) : mainJNI.Decision_toStringSwigExplicitDecision(swigCPtr,
this);