public class IntIterableBitSet extends Set_BitSet implements IntIterableSet
card, offset, values| Constructor and Description |
|---|
IntIterableBitSet()
Creates an IntIterable object relying on an offseted bitset implementation.
|
| 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) |
void |
plus(int x)
add the value x to all integers stored in this set
|
int |
previousValue(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.
|
void |
setOffset(int offset)
Creates an IntIterable object relying on a bitset implementation.
|
String |
toString() |
add, clear, contains, getSetType, iterator, max, min, newIterator, remove, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, clear, contains, getSetType, isEmpty, iterator, max, min, newIterator, remove, size, toArrayforEach, spliteratorpublic IntIterableBitSet()
public void setOffset(int offset)
offset - lowest value to be stored in this setpublic boolean addAll(int... values)
IntIterableSetaddAll in interface IntIterableSetvalues - array containing elements to be added to this settrue if this set changed as a result of the callpublic boolean addAll(IntIterableSet set)
IntIterableSetaddAll in interface IntIterableSetset - set containing elements to be added to this settrue if this set changed as a result of the callpublic boolean retainAll(IntIterableSet set)
IntIterableSetretainAll in interface IntIterableSetset - set containing elements to be retained in this setpublic boolean removeAll(IntIterableSet set)
IntIterableSetremoveAll in interface IntIterableSetset - set containing elements to be removed from this setpublic boolean removeBetween(int f,
int t)
IntIterableSetremoveBetween in interface IntIterableSetf - first value to removet - last value to removepublic int nextValue(int aValue)
nextValue in interface IntIterableSetaValue - (exclusive)public int previousValue(int aValue)
previousValue in interface IntIterableSetaValue - (exclusive)public String toString()
toString in class Set_BitSetpublic IntIterableSet duplicate()
IntIterableSetduplicate in interface IntIterableSetpublic void plus(int x)
IntIterableSetplus in interface IntIterableSetx - value to addpublic void minus(int x)
IntIterableSetminus in interface IntIterableSetx - value to addCopyright © 2017. All rights reserved.