scala.compat.java8.wrappers.IteratorPrimitiveLongWrapper Maven / Gradle / Ivy
/*
* Copyright (C) 2012-2015 Typesafe Inc.
*/
package scala.compat.java8.wrappers;
public class IteratorPrimitiveLongWrapper implements java.util.PrimitiveIterator.OfLong {
private java.util.Iterator it;
public IteratorPrimitiveLongWrapper(java.util.Iterator it) {
this.it = it;
}
public boolean hasNext() { return it.hasNext(); }
public long nextLong() { return it.next().longValue(); }
public void forEachRemaining(java.util.function.Consumer super Long> c) {
it.forEachRemaining(c);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy