org.openstreetmap.osmosis.core.filter.common
Interface IdTracker

All Superinterfaces:
java.lang.Iterable<java.lang.Long>
All Known Implementing Classes:
BitSetIdTracker, ListIdTracker

public interface IdTracker
extends java.lang.Iterable<java.lang.Long>

Defines the interface for all class implementations allowing a set of ids to be marked as in use. This is used in filter tasks for tracking which entities have been selected. Implementations support negative numbers.

Author:
Brett Henderson

Method Summary
 boolean get(long id)
          Checks whether the specified id is active.
 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 interface java.lang.Iterable
iterator
 

Method Detail

set

void set(long id)
Marks the specified id as active.

Parameters:
id - The identifier to be flagged.

get

boolean get(long id)
Checks whether the specified id is active.

Parameters:
id - The identifier to be checked.
Returns:
True if the identifier is active, false otherwise.

setAll

void setAll(IdTracker idTracker)
Sets all the ids contained in the specified tracker.

Parameters:
idTracker - The id tracker containing the ids to set.