Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdaemon.util.iterator
Class EmptyIterator  view EmptyIterator download EmptyIterator.java

java.lang.Object
  extended byorg.jdaemon.util.iterator.EmptyIterator
All Implemented Interfaces:
java.util.Iterator

public class EmptyIterator
extends java.lang.Object
implements java.util.Iterator

Empty Iterator object


Field Summary
private static java.util.Iterator INSTANCE
          Shared global instance
 
Constructor Summary
EmptyIterator()
          Creates a new instance of EmptyIterator
 
Method Summary
static java.util.Iterator getInstance()
          Accessor for shared global instance
 boolean hasNext()
          returns false
 java.lang.Object next()
          returns null
 void remove()
          Remove from the underlying collection the last element returned by next (optional operation).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static final java.util.Iterator INSTANCE
Shared global instance

Constructor Detail

EmptyIterator

public EmptyIterator()
Creates a new instance of EmptyIterator

Method Detail

getInstance

public static java.util.Iterator getInstance()
Accessor for shared global instance


hasNext

public boolean hasNext()
returns false

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
returns null

Specified by:
next in interface java.util.Iterator

remove

public void remove()
Description copied from interface: java.util.Iterator
Remove from the underlying collection the last element returned by next (optional operation). This method can be called only once after each call to next(). It does not affect what will be returned by subsequent calls to next.

Specified by:
remove in interface java.util.Iterator