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

org.vertexium.util.EmptyClosableIterable Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.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