thinkmap.client
Interface IEntityEnumeration

All Superinterfaces:
Enumeration

public interface IEntityEnumeration
extends Enumeration

This extension of the Enumeration interface is used for convienence and efficiency by the EntitySet object and its descendants. It is used for enumerating through a list of entities and a parallel list of "PropertyCaches" that are associated with each entity in the list. It is useful so that objects can re-use iterators they create over EntitySets.

Version:
$Revision: 1.3 $ $Date: 2004/04/27 21:01:37 $

Method Summary
 Entity currentEntity()
          Returns the last entity obtained through the nextEntity method.
 Entity nextEntity()
          Get the next entity, and advance the currentEntity and currentPropertyCache pointers.
 void reset()
          Resets this enumeration to the beginning.
 
Methods inherited from interface java.util.Enumeration
hasMoreElements, nextElement
 

Method Detail

nextEntity

Entity nextEntity()
Get the next entity, and advance the currentEntity and currentPropertyCache pointers.

Returns:
the nextEntity in the Enumeration.

currentEntity

Entity currentEntity()
Returns the last entity obtained through the nextEntity method.

Returns:
the last entity obtained through the nextEntity method.

reset

void reset()
Resets this enumeration to the beginning.



Copyright © 2013 Thinkmap, Inc. All Rights Reserved.