|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<DBID> de.lmu.ifi.dbs.elki.database.ids.generic.MaskedDBIDs
public class MaskedDBIDs
View on an ArrayDBIDs masked using a BitMask for efficient mask changing.
Nested Class Summary | |
---|---|
protected class |
MaskedDBIDs.InvItr
Iterator over unset elements. |
protected class |
MaskedDBIDs.Itr
Iterator over set bits |
Field Summary | |
---|---|
protected BitSet |
bits
The bitmask used for masking |
protected ArrayDBIDs |
data
Data storage |
protected boolean |
inverse
Flag whether to iterator over set or unset values. |
Constructor Summary | |
---|---|
MaskedDBIDs(ArrayDBIDs data,
BitSet bits,
boolean inverse)
Constructor. |
Method Summary | |
---|---|
boolean |
add(DBID e)
|
Collection<DBID> |
asCollection()
Retrieve collection access to the IDs |
void |
clear()
|
Iterator<DBID> |
iterator()
Retrieve Iterator access to the IDs. |
boolean |
remove(Object o)
|
int |
size()
Retrieve the collection / data size. |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.database.ids.DBIDs |
---|
contains, isEmpty |
Methods inherited from interface java.util.Collection |
---|
addAll, contains, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
Field Detail |
---|
protected ArrayDBIDs data
protected BitSet bits
protected boolean inverse
Constructor Detail |
---|
public MaskedDBIDs(ArrayDBIDs data, BitSet bits, boolean inverse)
data
- Databits
- Bitset to use as maskinverse
- Flag to inverse the masking ruleMethod Detail |
---|
public Iterator<DBID> iterator()
DBIDs
iterator
in interface DBIDs
iterator
in interface Iterable<DBID>
iterator
in interface Collection<DBID>
iterator
in class AbstractCollection<DBID>
public Collection<DBID> asCollection()
DBIDs
asCollection
in interface DBIDs
public int size()
DBIDs
size
in interface DBIDs
size
in interface Collection<DBID>
size
in class AbstractCollection<DBID>
public boolean add(DBID e)
add
in interface Collection<DBID>
add
in class AbstractCollection<DBID>
public boolean remove(Object o)
remove
in interface Collection<DBID>
remove
in class AbstractCollection<DBID>
public void clear()
clear
in interface Collection<DBID>
clear
in class AbstractCollection<DBID>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |