Java Reference
Java Reference
constraintsolver/Domain.java
Go to the documentation of this file.
173 return new Domain(mainJNI.Domain_intersectionWith(swigCPtr, this, Domain.getCPtr(domain), domain), true);
180 return new Domain(mainJNI.Domain_unionWith(swigCPtr, this, Domain.getCPtr(domain), domain), true);
187 return new Domain(mainJNI.Domain_additionWith(swigCPtr, this, Domain.getCPtr(domain), domain), true);
Domain intersectionWith(Domain domain)
Returns the intersection of D and domain.
Definition: constraintsolver/Domain.java:172
Domain unionWith(Domain domain)
Returns the union of D and domain.
Definition: constraintsolver/Domain.java:179
boolean contains(long value)
Returns true iff value is in Domain.
Definition: constraintsolver/Domain.java:148
Domain(long cPtr, boolean cMemoryOwn)
Definition: constraintsolver/Domain.java:25
static Domain fromValues(long[] values)
Creates a domain from the union of an unsorted list of integer values.
Definition: constraintsolver/Domain.java:82
static Domain fromIntervals(long[][] intervals)
This method is available in Python, Java and .NET.
Definition: constraintsolver/Domain.java:91
We call domain any subset of Int64 = [kint64min, kint64max].
Definition: constraintsolver/Domain.java:21
Domain(long value)
Constructor for the common case of a singleton domain.
Definition: constraintsolver/Domain.java:59
long size()
Returns the number of elements in the domain.
Definition: constraintsolver/Domain.java:125
static Domain fromFlatIntervals(long[] flat_intervals)
This method is available in Python, Java and .NET.
Definition: constraintsolver/Domain.java:100
Domain additionWith(Domain domain)
Returns {x ∈ Int64, ∃ a ∈ D, ∃ b ∈ domain, x = a + b}.
Definition: constraintsolver/Domain.java:186
long [] flattenedIntervals()
This method returns the flattened list of interval bounds of the domain.
Definition: constraintsolver/Domain.java:111
Domain(long left, long right)
Constructor for the common case of a single interval [left, right].
Definition: constraintsolver/Domain.java:67
String toString()
Returns a compact string of a vector of intervals like "[1,4][6][10,20]".
Definition: constraintsolver/Domain.java:193