org.oddjob.schedules
Class CalendarUnit

java.lang.Object
  extended by org.oddjob.schedules.CalendarUnit

public class CalendarUnit
extends Object

Encapsulate a Unit of time that can be used for field manipulation with a Calendar.

Author:
rob

Constructor Summary
CalendarUnit(int field, int value)
          Constructor.
 
Method Summary
 int getField()
           
 int getValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarUnit

public CalendarUnit(int field,
                    int value)
Constructor.

Parameters:
field - The field that Calendar recognises.
value - The value of the unit.
Method Detail

getField

public int getField()

getValue

public int getValue()

toString

public String toString()
Overrides:
toString in class Object