Package io.microsphere.collection
Class SingletonIterator<E>
- java.lang.Object
-
- io.microsphere.collection.ReadOnlyIterator<E>
-
- io.microsphere.collection.SingletonIterator<E>
-
- Type Parameters:
E- the type of elements returned by this iterator
- All Implemented Interfaces:
java.util.Iterator<E>
public class SingletonIterator<E> extends ReadOnlyIterator<E>
SingletonIterator- Since:
- 1.0.0
- Author:
- Mercy
-
-
Constructor Summary
Constructors Constructor Description SingletonIterator(E element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforEachRemaining(java.util.function.Consumer<? super E> action)booleanhasNext()Enext()-
Methods inherited from class io.microsphere.collection.ReadOnlyIterator
remove
-
-