org.oddjob.schedules
Class CalendarUnit
java.lang.Object
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. |
CalendarUnit
public CalendarUnit(int field,
int value)
- Constructor.
- Parameters:
field
- The field that Calendar recognises.value
- The value of the unit.
getField
public int getField()
getValue
public int getValue()
toString
public String toString()
- Overrides:
toString
in class Object