Class OneElementIterator<T>
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.util.OneElementIterator<T>
-
- Type Parameters:
T- The type of the contained object.
- All Implemented Interfaces:
java.util.Iterator<T>
@Deprecated public class OneElementIterator<T> extends java.lang.Object implements java.util.Iterator<T>Deprecated.Will be removed in next minor release.Iterator that iterates over exact one element.
-
-
Constructor Summary
Constructors Constructor Description OneElementIterator(T element)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanhasNext()Deprecated.Tnext()Deprecated.voidremove()Deprecated.
-
-
-
Field Detail
-
element
private final T element
Deprecated.
-
hasNext
private boolean hasNext
Deprecated.
-
-
Constructor Detail
-
OneElementIterator
public OneElementIterator(T element)
Deprecated.- Parameters:
element- The element to iterate over. May be null.
-
-
Method Detail
-
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- 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()
-
-