package com.mongodb.client.internal;
import com.mongodb.MongoNamespace;
import com.mongodb.ReadConcern;
import com.mongodb.ReadPreference;
import com.mongodb.client.ClientSession;
import com.mongodb.lang.Nullable;
import org.bson.codecs.configuration.CodecRegistry;
import org.bson.conversions.Bson;
import java.util.function.Consumer;
class Java8FindIterableImpl<TDocument, TResult> extends FindIterableImpl<TDocument, TResult> {
Java8FindIterableImpl(@Nullable final ClientSession clientSession, final MongoNamespace namespace, final Class<TDocument> documentClass,
final Class<TResult> resultClass, final CodecRegistry codecRegistry, final ReadPreference readPreference,
final ReadConcern readConcern, final OperationExecutor executor, final Bson filter, final boolean retryReads) {
super(clientSession, namespace, documentClass, resultClass, codecRegistry, readPreference, readConcern, executor,
filter, retryReads);
}
@Override
public void forEach(final Consumer<? super TResult> action) {
Java8ForEachHelper.forEach(this, action);
}
}