/**************************************************************************************
* Copyright (C) 2008 EsperTech, Inc. All rights reserved. *
* http://esper.codehaus.org *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
**************************************************************************************/
package com.espertech.esper.collection;
import com.espertech.esper.client.EventBean;
import com.espertech.esper.client.SafeIterator;
import java.util.NoSuchElementException;
public class SafeIteratorNull<E> implements SafeIterator<E>
{
public static final SafeIterator<EventBean> NULL_EVENT_ITER = new SafeIteratorNull<EventBean>();
/**
* Ctor.
*/
public SafeIteratorNull()
{
}
public boolean hasNext()
{
return false;
}
public E next()
{
throw new NoSuchElementException();
}
public void close()
{
}
public void remove()
{
throw new UnsupportedOperationException("Remove operation not supported");
}
}