T
- Object typepublic static class Util.MaskedArrayList<T> extends AbstractCollection<T> implements Collection<T>
Modifier and Type | Class and Description |
---|---|
protected class |
Util.MaskedArrayList.InvItr
Iterator over unset elements.
|
protected class |
Util.MaskedArrayList.Itr
Iterator over set bits
|
Modifier and Type | Field and Description |
---|---|
protected BitSet |
bits
The bitmask used for masking
|
protected ArrayList<T> |
data
Data storage
|
protected boolean |
inverse
Flag whether to iterator over set or unset values.
|
Constructor and Description |
---|
Util.MaskedArrayList(ArrayList<T> data,
BitSet bits,
boolean inverse)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
Iterator<T> |
iterator() |
int |
size() |
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
protected BitSet bits
protected boolean inverse
public boolean add(T e)
add
in interface Collection<T>
add
in class AbstractCollection<T>
public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in class AbstractCollection<T>
public int size()
size
in interface Collection<T>
size
in class AbstractCollection<T>