Class EmptyIterator<T>
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.util.EmptyIterator<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
java.util.Iterator<T>
@Deprecated public final class EmptyIterator<T> extends java.lang.Object implements java.util.Iterator<T>Deprecated.Will be removed in next minor release.Iterator without any elements.
-
-
Field Summary
Fields Modifier and Type Field Description static EmptyIterator<?>INSTANCEDeprecated.Iterator without any element.
-
Constructor Summary
Constructors Constructor Description EmptyIterator()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <A> EmptyIterator<A>get()Deprecated.returns an Iterator with no elements.booleanhasNext()Deprecated.Tnext()Deprecated.voidremove()Deprecated.
-
-
-
Field Detail
-
INSTANCE
public static final EmptyIterator<?> INSTANCE
Deprecated.Iterator without any element.
-
-
Method Detail
-
get
public static <A> EmptyIterator<A> get()
Deprecated.returns an Iterator with no elements.- Type Parameters:
A-- Returns:
- an empty iterator
-
hasNext
public boolean hasNext()
Deprecated.- Specified by:
hasNextin interfacejava.util.Iterator<T>- See Also:
Iterator.hasNext()
-
next
public T next() throws java.util.NoSuchElementException
Deprecated.- Specified by:
nextin interfacejava.util.Iterator<T>- Throws:
java.util.NoSuchElementException- immer, weil der EmptyIterator keine Werte hat- See Also:
Iterator.next()
-
remove
public void remove() throws java.lang.UnsupportedOperationExceptionDeprecated.- Specified by:
removein interfacejava.util.Iterator<T>- Throws:
java.lang.UnsupportedOperationException- See Also:
Iterator.remove()
-
-