net.sf.molae.pipe.hash
Class ListBasedBitSet
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractSet
|
+--net.sf.molae.pipe.hash.SetBasedBitSet
|
+--net.sf.molae.pipe.hash.ListBasedBitSet
- All Implemented Interfaces:
- Collection, Set
- public class ListBasedBitSet
- extends SetBasedBitSet
A set based on a list and a bit set
that determines which elements are contained in the set.
|
Method Summary |
Iterator |
iterator()
Returns an iterator over the elements contained in this collection. |
| Methods inherited from class net.sf.molae.pipe.hash.SetBasedBitSet |
add, addAll, clear, contains, containsAll, getBase, getMask, isEmpty, remove, removeAll, retainAll, size |
ListBasedBitSet
public ListBasedBitSet(List base)
- Constructs a ListBasedBitSet object.
- Parameters:
base - the base set of which this set is a subset.
Each element must be stored at the position of its hash code.- See Also:
HashList
iterator
public Iterator iterator()
- Returns an iterator over the elements contained in this collection.
This implementation returns an iterator that iterates over the bits of
the bitmap.
- Overrides:
iterator in class SetBasedBitSet
- Returns:
- an iterator over the elements contained in this collection.