Generic constructor syntax.

This commit is contained in:
Gilles Sadowski 2021-05-26 00:01:00 +02:00
parent 8157678473
commit f885cb029f
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ public class TravellingSalesmanSolver {
private static Iterator<double[]> createIterator(final long numSamples,
final Set<City> uniqueCities,
final UniformRandomProvider random) {
final CollectionSampler<City> sampler = new CollectionSampler(random, uniqueCities);
final CollectionSampler<City> sampler = new CollectionSampler<>(random, uniqueCities);
return new Iterator<double[]>() {
/** Number of samples. */