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