9package com.google.ortools.constraintsolver;
12 private transient long swigCPtr;
21 return (obj ==
null) ? 0 : obj.swigCPtr;
28 throw new RuntimeException(
"Cannot release ownership as memory is not owned");
30 obj.swigCMemOwn =
false;
36 @SuppressWarnings({
"deprecation",
"removal"})
45 mainJNI.delete_IntTupleSet(swigCPtr);
52 this(mainJNI.new_IntTupleSet__SWIG_0(
arity),
true);
60 mainJNI.IntTupleSet_clear(swigCPtr,
this);
64 return mainJNI.IntTupleSet_insert__SWIG_0(swigCPtr,
this, tuple);
68 return mainJNI.IntTupleSet_insert__SWIG_1(swigCPtr,
this, tuple);
72 return mainJNI.IntTupleSet_insert2(swigCPtr,
this, v0, v1);
75 public int insert3(
long v0,
long v1,
long v2) {
76 return mainJNI.IntTupleSet_insert3(swigCPtr,
this, v0, v1, v2);
79 public int insert4(
long v0,
long v1,
long v2,
long v3) {
80 return mainJNI.IntTupleSet_insert4(swigCPtr,
this, v0, v1, v2, v3);
84 mainJNI.IntTupleSet_insertAll__SWIG_0(swigCPtr,
this, tuples);
88 mainJNI.IntTupleSet_insertAll__SWIG_1(swigCPtr,
this, tuples);
92 return mainJNI.IntTupleSet_contains__SWIG_0(swigCPtr,
this, tuple);
96 return mainJNI.IntTupleSet_contains__SWIG_1(swigCPtr,
this, tuple);
100 return mainJNI.IntTupleSet_numTuples(swigCPtr,
this);
103 public long value(
int tuple_index,
int pos_in_tuple) {
104 return mainJNI.IntTupleSet_value(swigCPtr,
this, tuple_index, pos_in_tuple);
108 return mainJNI.IntTupleSet_arity(swigCPtr,
this);
112 return mainJNI.IntTupleSet_numDifferentValuesInColumn(swigCPtr,
this, col);
116 return new IntTupleSet(mainJNI.IntTupleSet_sortedByColumn(swigCPtr,
this, col),
true);
120 return new IntTupleSet(mainJNI.IntTupleSet_sortedLexicographically(swigCPtr,
this),
true);