com.mysema.commons.lang
Class EmptyCloseableIterator<T>

java.lang.Object
  extended by com.mysema.commons.lang.EmptyCloseableIterator<T>
All Implemented Interfaces:
CloseableIterator<T>, Closeable, Iterator<T>

public class EmptyCloseableIterator<T>
extends Object
implements CloseableIterator<T>

Empty implementation of the CloseableIterator interface

Author:
tiwe

Constructor Summary
EmptyCloseableIterator()
           
 
Method Summary
 void close()
          Closes this iterator and releases any system resources associated with it.
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyCloseableIterator

public EmptyCloseableIterator()
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

next

public T next()
Specified by:
next in interface Iterator<T>

remove

public void remove()
Specified by:
remove in interface Iterator<T>

close

public void close()
Description copied from interface: CloseableIterator
Closes this iterator and releases any system resources associated with it. If the iterator is already closed then invoking this method has no effect.

Specified by:
close in interface CloseableIterator<T>
Specified by:
close in interface Closeable


Copyright © 2008-2012 Mysema Ltd. All Rights Reserved.