Package org.zaproxy.zap.utils
Class EmptyResettableAutoCloseableIterator<E>
- java.lang.Object
-
- org.zaproxy.zap.utils.EmptyResettableAutoCloseableIterator<E>
-
- Type Parameters:
E
- the type of elements returned by this iterator
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.util.Iterator<E>
,ResettableAutoCloseableIterator<E>
,ResettableIterator<E>
public final class EmptyResettableAutoCloseableIterator<E> extends java.lang.Object implements ResettableAutoCloseableIterator<E>
An immutableResettableAutoCloseableIterator
without behaviour.Useful as placeholder when a non-
null
ResettableAutoCloseableIterator
is required but does not to have to do anything.- Since:
- 2.4.0
- See Also:
emptyIterator()
,ResettableAutoCloseableIterator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static <T> EmptyResettableAutoCloseableIterator<T>
emptyIterator()
boolean
hasNext()
E
next()
void
remove()
void
reset()
Resets the iterator to the initial state.
-
-
-
Method Detail
-
emptyIterator
public static <T> EmptyResettableAutoCloseableIterator<T> emptyIterator()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<E>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<E>
-
reset
public void reset()
Description copied from interface:ResettableIterator
Resets the iterator to the initial state.- Specified by:
reset
in interfaceResettableIterator<E>
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceResettableAutoCloseableIterator<E>
-
-