EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql.util.iterator
Class NullIterator

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.util.iterator.NullIterator
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, java.util.Iterator<java.lang.Object>, IterableIterator<java.lang.Object>

public final class NullIterator
extends java.lang.Object
implements IterableIterator<java.lang.Object>

A null instance of an IterableIterator.

Version:
2.4
Since:
2.4

Method Summary
 boolean hasNext()
          
static
<T> IterableIterator<T>
instance()
          Returns the singleton instance this NullIterator.
 java.util.Iterator<java.lang.Object> iterator()
          
 java.lang.Object next()
          
 void remove()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

instance

public static <T> IterableIterator<T> instance()
Returns the singleton instance this NullIterator.

Returns:
The singleton instance this NullIterator

hasNext

public boolean hasNext()

Specified by:
hasNext in interface java.util.Iterator<java.lang.Object>

iterator

public java.util.Iterator<java.lang.Object> iterator()

Specified by:
iterator in interface java.lang.Iterable<java.lang.Object>

next

public java.lang.Object next()

Specified by:
next in interface java.util.Iterator<java.lang.Object>

remove

public void remove()

Specified by:
remove in interface java.util.Iterator<java.lang.Object>

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference