org.millscript.millscript.datatypes
Class NullSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<java.lang.Object>
          extended by org.millscript.millscript.datatypes.NullSet
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, java.util.Collection<java.lang.Object>, java.util.Set<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 IEmptyMap.

@Deprecated
public class NullSet
extends java.util.AbstractSet<java.lang.Object>

An implementation of Set, that will never contain any elements. This is used in the implementation of NullMapWithDefault.


Constructor Summary
NullSet()
          Deprecated.  
 
Method Summary
 java.util.Iterator<java.lang.Object> iterator()
          Deprecated. Returns a special NullIterator, as this set will never contain any values.
 int size()
          Deprecated. Always returns zero, as this set never contains any values.
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 

Constructor Detail

NullSet

public NullSet()
Deprecated. 
Method Detail

size

public int size()
Deprecated. 
Always returns zero, as this set never contains any values.

Specified by:
size in interface java.util.Collection<java.lang.Object>
Specified by:
size in interface java.util.Set<java.lang.Object>
Specified by:
size in class java.util.AbstractCollection<java.lang.Object>
Returns:
zero, as this set never contains any values

iterator

public java.util.Iterator<java.lang.Object> iterator()
Deprecated. 
Returns a special NullIterator, as this set will never contain any values.

Specified by:
iterator in interface java.lang.Iterable<java.lang.Object>
Specified by:
iterator in interface java.util.Collection<java.lang.Object>
Specified by:
iterator in interface java.util.Set<java.lang.Object>
Specified by:
iterator in class java.util.AbstractCollection<java.lang.Object>
Returns:
a iterator with no items


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