Compoze Software, Inc.

com.compoze.trigger
Class AdjustedDateList


java.lang.Object

  |

  +--com.compoze.trigger.AdjustedDateList

All Implemented Interfaces:
IDateList, java.io.Serializable

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

This class provides a date list that wraps an existing date list and is adjusted for a given time offset.

See Also:
Serialized Form

Constructor Summary
AdjustedDateList(IDateList dateList, long lTimeIncrement)
          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

AdjustedDateList


public AdjustedDateList(IDateList dateList,
                        long lTimeIncrement)
Constructor.
Parameters:
dateList - the date list
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.