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

com.mindoo.domino.jna.utils.EmptyIterator Maven / Gradle / Ivy

There is a newer version: 0.9.53
Show newest version
package com.mindoo.domino.jna.utils;

import java.util.Iterator;
import java.util.NoSuchElementException;

/**
 * Simple implementation of {@link Iterator} that does not
 * contain any elements.
 * 
 * @author Karsten Lehmann
 *
 * @param  iterator data type
 */
public class EmptyIterator implements Iterator {

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

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

	@Override
	public void remove() {
		throw new UnsupportedOperationException();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy