public class BitVector extends AbstractSet<Integer>
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
data |
protected int |
size |
| Constructor and Description |
|---|
BitVector() |
BitVector(BitVector v) |
BitVector(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int pos) |
boolean |
add(Integer pos) |
void |
clear() |
void |
compress() |
boolean |
contains(int index) |
boolean |
contains(Object arg0) |
protected void |
ensureCapacity(int c) |
boolean |
isEmpty() |
PeekIterator<Integer> |
iterator() |
static void |
main(String[] args) |
boolean |
remove(int pos) |
boolean |
remove(Object pos) |
int |
size() |
String |
toString() |
equals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic BitVector(int capacity)
public BitVector(BitVector v)
public BitVector()
protected void ensureCapacity(int c)
public boolean add(Integer pos)
add in interface Collection<Integer>add in interface Set<Integer>add in class AbstractCollection<Integer>public boolean add(int pos)
public boolean remove(Object pos)
remove in interface Collection<Integer>remove in interface Set<Integer>remove in class AbstractCollection<Integer>public boolean remove(int pos)
public boolean contains(Object arg0)
contains in interface Collection<Integer>contains in interface Set<Integer>contains in class AbstractCollection<Integer>public boolean contains(int index)
public boolean isEmpty()
isEmpty in interface Collection<Integer>isEmpty in interface Set<Integer>isEmpty in class AbstractCollection<Integer>public int size()
size in interface Collection<Integer>size in interface Set<Integer>size in class AbstractCollection<Integer>public void clear()
clear in interface Collection<Integer>clear in interface Set<Integer>clear in class AbstractCollection<Integer>public String toString()
toString in class AbstractCollection<Integer>public void compress()
public PeekIterator<Integer> iterator()
public static void main(String[] args)
Copyright © 2018. All rights reserved.