Compoze Software, Inc.

com.compoze.trigger
Class IteratorDateList


java.lang.Object

  |

  +--com.compoze.trigger.IteratorDateList

All Implemented Interfaces:
IDateList, java.io.Serializable

public class IteratorDateList
extends java.lang.Object
implements IDateList, java.io.Serializable

This class implements the IDateList interface for iterators that return an ordered list of dates.

See Also:
Serialized Form

Constructor Summary
IteratorDateList(java.util.Iterator it)
          Constructor.
 
Method Summary
 java.util.Date getEarliest()
          Get the next earliest date in the date list and advance the reference in the list to the next date.
 java.util.Date peekEarliest()
          Check the next earliest date in the list without advancing to the next date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorDateList


public IteratorDateList(java.util.Iterator it)
Constructor.
Parameters:
it - the date iterator
Method Detail

getEarliest


public java.util.Date getEarliest()
Get the next earliest date in the date list and advance the reference in the list to the next date.
Specified by:
getEarliest in interface IDateList
Returns:
the next earliest date, or null if there are no more dates

peekEarliest


public java.util.Date peekEarliest()
Check the next earliest date in the list without advancing to the next date.
Specified by:
peekEarliest in interface IDateList
Returns:
the next earliest date, or null if there are no more dates

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.