com.linkedin.dagli.objectio.EmptyIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectio-core Show documentation
Show all versions of objectio-core Show documentation
DAG-oriented machine learning framework for bug-resistant, readable, efficient, maintainable and trivially deployable models in Java and other JVM languages
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