All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 c) {
    it.forEachRemaining(c);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy