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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy