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, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, clear, contains, getSetType, isEmpty, iterator, max, min, newIterator, remove, size, toArray
forEach, spliterator
public IntIterableBitSet()
public void setOffset(int offset)
offset
- lowest value to be stored in this setpublic boolean addAll(int... values)
IntIterableSet
addAll
in interface IntIterableSet
values
- array containing elements to be added to this settrue
if this set changed as a result of the callpublic boolean addAll(IntIterableSet set)
IntIterableSet
addAll
in interface IntIterableSet
set
- set containing elements to be added to this settrue
if this set changed as a result of the callpublic boolean retainAll(IntIterableSet set)
IntIterableSet
retainAll
in interface IntIterableSet
set
- set containing elements to be retained in this setpublic boolean removeAll(IntIterableSet set)
IntIterableSet
removeAll
in interface IntIterableSet
set
- set containing elements to be removed from this setpublic boolean removeBetween(int f, int t)
IntIterableSet
removeBetween
in interface IntIterableSet
f
- first value to removet
- last value to removepublic int nextValue(int aValue)
nextValue
in interface IntIterableSet
aValue
- (exclusive)public int previousValue(int aValue)
previousValue
in interface IntIterableSet
aValue
- (exclusive)public String toString()
toString
in class Set_BitSet
public IntIterableSet duplicate()
IntIterableSet
duplicate
in interface IntIterableSet
public void plus(int x)
IntIterableSet
plus
in interface IntIterableSet
x
- value to addpublic void minus(int x)
IntIterableSet
minus
in interface IntIterableSet
x
- value to addCopyright © 2018. All rights reserved.