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.
  • Constructor Details

    • AlwaysClosed

      public AlwaysClosed()
      Construct a new iterator that is empty and closed already.
  • Method Details