private void sendWays() {
    ReleasableIterator<WayContainer> wayIterator = allWays.iterate();
    while (wayIterator.hasNext()) {
      WayContainer wayContainer = wayIterator.next();

      if (!isRequiredWay(wayContainer.getEntity())) continue;

      sink.process(wayContainer);
    }
    wayIterator.release();
  }
Exemple #2
0
  /** {@inheritDoc} */
  public void process(WayContainer container) {
    Way way = container.getEntity();

    boolean matchesFilter = false;
    for (Tag tag : way.getTags()) {
      if (allowedKeys.contains(tag.getKey())) {
        matchesFilter = true;
        break;
      }
    }

    if (matchesFilter) {
      sink.process(container);
    }
  }
 /** {@inheritDoc} */
 public void process(WayContainer wayContainer) {
   changeWriter.write(wayContainer.getEntity(), action);
 }