public interface Selection
extends it.unimi.dsi.fastutil.ints.IntIterable
Modifier and Type | Method and Description |
---|---|
void |
add(int i)
Adds the given integer to the Selection if it is not already present, and does nothing otherwise
|
void |
addRange(int start,
int end)
Adds to the current bitmap all integers in [rangeStart,rangeEnd)
|
void |
and(Selection otherSelection)
Intersects the receiver and
otherSelection , updating the receiver |
void |
andNot(Selection otherSelection)
Implements the set difference operation between the receiver and
otherSelection , updating the receiver |
void |
clear() |
boolean |
contains(int i) |
int |
get(int i) |
boolean |
isEmpty() |
void |
or(Selection otherSelection)
Implements the union of the receiver and
otherSelection , updating the receiver |
int |
size() |
int[] |
toArray() |
org.roaringbitmap.RoaringBitmap |
toBitmap() |
it.unimi.dsi.fastutil.ints.IntArrayList |
toIntArrayList()
Returns an IntArrayList containing the ints in this selection
|
forEach, spliterator
int[] toArray()
org.roaringbitmap.RoaringBitmap toBitmap()
it.unimi.dsi.fastutil.ints.IntArrayList toIntArrayList()
void add(int i)
int size()
void and(Selection otherSelection)
otherSelection
, updating the receivervoid or(Selection otherSelection)
otherSelection
, updating the receivervoid andNot(Selection otherSelection)
otherSelection
, updating the receiverboolean isEmpty()
void clear()
boolean contains(int i)
void addRange(int start, int end)
start
- inclusive beginning of rangeend
- exclusive ending of rangeint get(int i)
Copyright © 2017. All rights reserved.