
scala.compat.java8.wrappers.IteratorPrimitiveDoubleWrapper Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2012-2015 Typesafe Inc.
*/
package scala.compat.java8.wrappers;
public class IteratorPrimitiveDoubleWrapper implements java.util.PrimitiveIterator.OfDouble {
private java.util.Iterator it;
public IteratorPrimitiveDoubleWrapper(java.util.Iterator it) {
this.it = it;
}
public boolean hasNext() { return it.hasNext(); }
public double nextDouble() { return it.next().doubleValue(); }
public void forEachRemaining(java.util.function.Consumer super Double> c) {
it.forEachRemaining(c);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy