org.millscript.millscript.datatypes
Class NullIterator

java.lang.Object
  extended by org.millscript.millscript.datatypes.NullIterator
All Implemented Interfaces:
java.util.Iterator<java.lang.Object>

Deprecated. As of MillScript 10.2.0, this functionallity has been subsumed by the MillScript-Util project and it's Map API, see NullMapIterator.

@Deprecated
public class NullIterator
extends java.lang.Object
implements java.util.Iterator<java.lang.Object>

An Iterator that iterates over no items. This is used in the implmentation of NullSet.


Constructor Summary
NullIterator()
          Deprecated.  
 
Method Summary
 boolean hasNext()
          Deprecated. Returns false, as this iterator never has any values.
 java.lang.Object next()
          Deprecated.  
 void remove()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullIterator

public NullIterator()
Deprecated. 
Method Detail

hasNext

public boolean hasNext()
Deprecated. 
Returns false, as this iterator never has any values.

Specified by:
hasNext in interface java.util.Iterator<java.lang.Object>
Returns:
false, this iterator never has any values.
See Also:
Iterator.hasNext()

next

public java.lang.Object next()
Deprecated. 
Specified by:
next in interface java.util.Iterator<java.lang.Object>
See Also:
Iterator.next()

remove

public void remove()
Deprecated. 
Specified by:
remove in interface java.util.Iterator<java.lang.Object>
See Also:
Iterator.remove()


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.