org.securegraph.util.EmptyClosableIterable Maven / Gradle / Ivy
The newest version!
package org.securegraph.util;
import java.util.Iterator;
public class EmptyClosableIterable implements CloseableIterable {
@Override
public void close() {
}
@Override
public Iterator iterator() {
return new Iterator() {
@Override
public boolean hasNext() {
return false;
}
@Override
public T next() {
throw new IllegalStateException("No element");
}
@Override
public void remove() {
throw new IllegalStateException("Remove not implemented");
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy