com.mindoo.domino.jna.utils.EmptyIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-jna Show documentation
Show all versions of domino-jna Show documentation
Java project to access the HCL Domino C API using Java Native Access (JNA)
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();
}
}