cc.redberry.core.utils
Class EmptyIterator<T>
- java.lang.Object
-
- cc.redberry.core.utils.EmptyIterator<T>
-
- All Implemented Interfaces:
- java.util.Iterator<T>
public class EmptyIterator<T> extends java.lang.Object implements java.util.Iterator<T>Singleton empty iterator.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field and Description static EmptyIteratorINSTANCEEmpty iterator singleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanhasNext()Returns false.Tnext()ThrowsIllegalStateException.voidremove()ThrowsIllegalStateException.
-
-
-
Field Detail
-
INSTANCE
public static final EmptyIterator INSTANCE
Empty iterator singleton instance.
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returns false.- Specified by:
hasNextin interfacejava.util.Iterator<T>- Returns:
- false
-
next
public T next()
ThrowsIllegalStateException.- Specified by:
nextin interfacejava.util.Iterator<T>- Returns:
- throws
IllegalStateException - Throws:
{@code- IllegalStateException} always
-
remove
public void remove()
ThrowsIllegalStateException.- Specified by:
removein interfacejava.util.Iterator<T>- Throws:
{@code- IllegalStateException} always
-
-
DataMelt 3.0 © DataMelt by jWork.ORG