net.spy.cron
Class TimeIncrement

java.lang.Object
  extended by net.spy.cron.TimeIncrement
Direct Known Subclasses:
SimpleTimeIncrement

public class TimeIncrement
extends java.lang.Object

This object defines how a recurring job should increment itself.


Constructor Summary
TimeIncrement()
          Get a new TimeIncrement object.
TimeIncrement(java.util.Calendar c)
          Get a new TimeIncrement object using a specific Calendar.
 
Method Summary
 java.util.Date nextDate(java.util.Date d)
          Get the next value of this Date.
 void setField(int to)
          Set Calendar field to increment.
 void setIncrement(int to)
          Set the increment amount.
 java.lang.String toString()
          String me.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeIncrement

public TimeIncrement()
Get a new TimeIncrement object.


TimeIncrement

public TimeIncrement(java.util.Calendar c)
Get a new TimeIncrement object using a specific Calendar.

Method Detail

toString

public java.lang.String toString()
String me.

Overrides:
toString in class java.lang.Object

setField

public void setField(int to)
Set Calendar field to increment.


setIncrement

public void setIncrement(int to)
Set the increment amount.


nextDate

public java.util.Date nextDate(java.util.Date d)
Get the next value of this Date.



Copyright © 1995-2005 SPY Internetworking. All Rights Reserved.