@Override public PointEntryDist<T> next() { //This reuses the entry object, but we have to clone the arrays... PhEntryDistF<T> e = iter.nextEntryReuse(); return new DistEntryP<>(e.getKey().clone(), e.getValue(), e.dist()); }
@Override public PointEntryDist<T> next() { //This reuses the entry object, but we have to clone the arrays... PhEntryDistF<T> e = iter.nextEntryReuse(); return new DistEntryP<>(e.getKey().clone(), e.getValue(), e.dist()); }