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

kikaha.core.cdi.helpers.EmptyIterable Maven / Gradle / Ivy

package kikaha.core.cdi.helpers;

import java.util.Iterator;

@SuppressWarnings( { "rawtypes", "unchecked" } )
public class EmptyIterable implements Iterable, Iterator {

	private final static EmptyIterable INSTANCE = new EmptyIterable();

	public static  EmptyIterable instance() {
		return INSTANCE;
	}

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

	@Override
	public T next() {
		return null;
	}

	@Override
	public Iterator iterator() {
		return this;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy