net.spy.cron
Class TimeIncrement

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

public class TimeIncrement
extends Object

This object defines how a recurring job should increment itself.


Constructor Summary
TimeIncrement()
          Get a new TimeIncrement object.
TimeIncrement(Calendar c)
          Get a new TimeIncrement object using a specific Calendar.
 
Method Summary
 Date nextDate(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.
 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(Calendar c)
Get a new TimeIncrement object using a specific Calendar.

Method Detail

toString

public String toString()
String me.


setField

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


setIncrement

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


nextDate

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