com.espertech.esper.collection.SafeIteratorNull Maven / Gradle / Ivy
/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* 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 implements SafeIterator {
public static final SafeIterator NULL_EVENT_ITER = new SafeIteratorNull();
/**
* 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");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy