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

com.linkedin.dagli.objectio.EmptyIterator Maven / Gradle / Ivy

Go to download

DAG-oriented machine learning framework for bug-resistant, readable, efficient, maintainable and trivially deployable models in Java and other JVM languages

There is a newer version: 15.0.0-beta9
Show newest version
package com.linkedin.dagli.objectio;

import java.util.NoSuchElementException;


/**
 * The empty iterator singleton.
 */
enum EmptyIterator implements ObjectIterator {
  INSTANCE;

  @Override
  public boolean hasNext() {
    return false;
  }

  @Override
  public Object next() {
    throw new NoSuchElementException();
  }

  @Override
  public void close() { }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy