com.plumtree.openfoundation.util
Class XPEnumerator

java.lang.Object
  extended bycom.plumtree.openfoundation.util.XPEnumerator
All Implemented Interfaces:
IXPEnumerator

public class XPEnumerator
extends java.lang.Object
implements IXPEnumerator

A hashtable enumerator class. This class implements the IXPEnumerator interface.


Constructor Summary
XPEnumerator(java.util.Enumeration enumerator)
          Constructor with a given enumerator.
XPEnumerator(java.util.Iterator iterator)
          Constructor with a given Iterator.
 
Method Summary
 java.lang.Object GetCurrent()
          Gets curret Object pointed by XPEnumerator.
 boolean MoveNext()
          Points to Next Element in the Collection if one Exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPEnumerator

public XPEnumerator(java.util.Enumeration enumerator)
Constructor with a given enumerator.

Parameters:
enumerator - with which XPEnumerator is constructed.

XPEnumerator

public XPEnumerator(java.util.Iterator iterator)
Constructor with a given Iterator.

Parameters:
iterator - with which XPEnumerator is constructed.
Method Detail

GetCurrent

public java.lang.Object GetCurrent()
Gets curret Object pointed by XPEnumerator. if the enumerator is positioned either before the first element or after the last element, throw an exception return Object that's pointed by XPEnumerator.

Specified by:
GetCurrent in interface IXPEnumerator
Returns:
Current Object.

MoveNext

public boolean MoveNext()
Points to Next Element in the Collection if one Exists.

Specified by:
MoveNext in interface IXPEnumerator
Returns:
true if move is done, else false if it reached end of collection. Also sets IsEOC flag to true.


Copyright 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.