9package com.google.ortools.constraintsolver;
13import java.util.function.LongConsumer;
16 private transient long swigCPtr;
19 super(mainJNI.IntVarLocalSearchFilter_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_IntVarLocalSearchFilter(swigCPtr);
62 mainJNI.IntVarLocalSearchFilter_change_ownership(
this, swigCPtr,
false);
67 mainJNI.IntVarLocalSearchFilter_change_ownership(
this, swigCPtr,
true);
71 this(mainJNI.new_IntVarLocalSearchFilter(vars),
true);
72 mainJNI.IntVarLocalSearchFilter_director_connect(
this, swigCPtr,
true,
true);
87 mainJNI.IntVarLocalSearchFilter_addVars(swigCPtr,
this, vars);
91 return mainJNI.IntVarLocalSearchFilter_size(swigCPtr,
this);
95 long cPtr = mainJNI.IntVarLocalSearchFilter_var(swigCPtr,
this,
index);
96 return (cPtr == 0) ? null :
new IntVar(cPtr,
false);
100 return mainJNI.IntVarLocalSearchFilter_value(swigCPtr,
this,
index);
104 if (getClass() ==
IntVarLocalSearchFilter.class) mainJNI.IntVarLocalSearchFilter_onSynchronize(swigCPtr,
this,
Assignment.
getCPtr(delta), delta);
else mainJNI.IntVarLocalSearchFilter_onSynchronizeSwigExplicitIntVarLocalSearchFilter(swigCPtr,
this,
Assignment.
getCPtr(delta), delta);