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 Java8DistinctIterableImpl<TDocument, TResult> extends DistinctIterableImpl<TDocument, TResult> {
Java8DistinctIterableImpl(final @Nullable 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 String fieldName, final Bson filter, final boolean retryReads) {
super(clientSession, namespace, documentClass, resultClass, codecRegistry, readPreference, readConcern, executor, fieldName,
filter, retryReads);
}
@Override
public void forEach(final Consumer<? super TResult> action) {
Java8ForEachHelper.forEach(this, action);
}
}