public interface IntIterableSet extends ISet
IntVar.removeValues(IntIterableSet, org.chocosolver.solver.ICause)
and
IntVar.removeAllValuesBut(IntIterableSet, org.chocosolver.solver.ICause)
Created by cprudhom on 09/07/15.
Project: choco.Modifier and Type | Method and Description |
---|---|
boolean |
addAll(int... values)
Adds all of the elements in the array to this set.
|
boolean |
addAll(IntIterableSet set)
Adds all of the elements in the specified set to this set.
|
IntIterableSet |
duplicate()
Returns a carbon-copy of this set
|
void |
minus(int x)
subtract the value x to all integers stored in this set
|
int |
nextValue(int aValue) |
int |
nextValueOut(int aValue) |
void |
plus(int x)
add the value x to all integers stored in this set
|
int |
previousValue(int aValue) |
int |
previousValueOut(int aValue) |
boolean |
removeAll(IntIterableSet set)
Removes all of this set's elements that are also contained in the
specified set.
|
boolean |
removeBetween(int f,
int t)
Removes all values between f (inclusive) and t (inclusive)
|
boolean |
retainAll(IntIterableSet set)
Retains only the elements in this set that are contained in the
specified set.
|
add, clear, contains, getSetType, isEmpty, iterator, max, min, newIterator, remove, size, toArray
forEach, spliterator
boolean addAll(int... values)
values
- array containing elements to be added to this settrue
if this set changed as a result of the callboolean addAll(IntIterableSet set)
set
- set containing elements to be added to this settrue
if this set changed as a result of the callboolean retainAll(IntIterableSet set)
set
- set containing elements to be retained in this setboolean removeAll(IntIterableSet set)
set
- set containing elements to be removed from this setboolean removeBetween(int f, int t)
f
- first value to removet
- last value to removeint nextValue(int aValue)
aValue
- (exclusive)Integer.MAX_VALUE
int nextValueOut(int aValue)
aValue
- (exclusive)int previousValue(int aValue)
aValue
- (exclusive)Integer.MIN_VALUE
int previousValueOut(int aValue)
aValue
- (exclusive)IntIterableSet duplicate()
void plus(int x)
x
- value to addvoid minus(int x)
x
- value to addCopyright © 2018. All rights reserved.