@Override
    public boolean hasNext() {
      if (currentItems == null) {
        throw new IllegalStateException(".update() must be called first");
      }
      return !unprocessedItems.isEmpty() || !processedItems.isEmpty();
    }
@Override
    public boolean hasNext()