harpoon.Util
Class SingletonEnumerator

java.lang.Object
  |
  +--harpoon.Util.SingletonEnumerator
All Implemented Interfaces:
Enumeration

Deprecated. Use harpoon.Util.Default.singletonIterator instead.

public class SingletonEnumerator
extends Object
implements Enumeration

SingletonEnumerator enumerates a single value.

Version:
$Id: SingletonEnumerator.java,v 1.3 2002/02/25 21:08:55 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Constructor Summary
SingletonEnumerator(Object o)
          Deprecated. Creates a SingletonEnumerator which enumerates the single value o.
 
Method Summary
 boolean hasMoreElements()
          Deprecated.  
 Object nextElement()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingletonEnumerator

public SingletonEnumerator(Object o)
Deprecated. 
Creates a SingletonEnumerator which enumerates the single value o.

Method Detail

hasMoreElements

public boolean hasMoreElements()
Deprecated. 
Specified by:
hasMoreElements in interface Enumeration

nextElement

public Object nextElement()
Deprecated. 
Specified by:
nextElement in interface Enumeration