Class CloseableIterator.AlwaysClosed<T>
java.lang.Object
de.marcely.bedwars.tools.CloseableIterator.AlwaysClosed<T>
- Type Parameters:
T- The parameter it *would* output
- All Implemented Interfaces:
CloseableIterator<T>, Closeable, AutoCloseable, Iterator<T>
- Enclosing interface:
CloseableIterator<T>
public static class CloseableIterator.AlwaysClosed<T>
extends Object
implements CloseableIterator<T>
An iterator with no entries that is closed upon initialization.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CloseableIterator
CloseableIterator.AlwaysClosed<T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, remove
-
Constructor Details
-
AlwaysClosed
public AlwaysClosed()Construct a new iterator that is empty and closed already.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
hasNext
-
next
-