01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package org.terracotta.ui.util;
06:
07: import java.util.Iterator;
08: import java.util.NoSuchElementException;
09:
10: public class EmptyIterator implements Iterator {
11: public boolean hasNext() {
12: return false;
13: }
14:
15: public Object next() {
16: throw new NoSuchElementException();
17: }
18:
19: public void remove() {
20: throw new IllegalStateException();
21: }
22: }
|