|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.filter.common.BitSetIdTracker
public class BitSetIdTracker
Implements the IdTracker interface using an internal JDK BitSet. The current implementation only supports 31 bit numbers, but will be enhanced if and when required.
Constructor Summary | |
---|---|
BitSetIdTracker()
Creates a new instance. |
Method Summary | |
---|---|
boolean |
get(long id)
Checks whether the specified id is active. |
java.util.Iterator<java.lang.Long> |
iterator()
|
void |
set(long id)
Marks the specified id as active. |
void |
setAll(IdTracker idTracker)
Sets all the ids contained in the specified tracker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BitSetIdTracker()
Method Detail |
---|
public void set(long id)
set
in interface IdTracker
id
- The identifier to be flagged.public boolean get(long id)
get
in interface IdTracker
id
- The identifier to be checked.
public java.util.Iterator<java.lang.Long> iterator()
iterator
in interface java.lang.Iterable<java.lang.Long>
public void setAll(IdTracker idTracker)
setAll
in interface IdTracker
idTracker
- The id tracker containing the ids to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |