com.std.util.range
Class MonthRange
java.lang.Object
com.std.util.range.DateRange
com.std.util.range.MonthRange
- All Implemented Interfaces:
- java.io.Serializable
public class MonthRange
- extends DateRange
represents a full month as a range of dates
- Author:
- xxx
- See Also:
- Serialized Form
Constructor Summary |
MonthRange()
creates a MonthRange representing this month |
MonthRange(java.util.Date date)
creates a MonthRange representing the month of the given date |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
MonthRange
public MonthRange()
- creates a MonthRange representing this month
MonthRange
public MonthRange(java.util.Date date)
- creates a MonthRange representing the month of the given date
- Parameters:
date
- a date in the month to represent
nextMonth
public MonthRange nextMonth()
- Returns:
- the next sequential month
previousMonth
public MonthRange previousMonth()
- Returns:
- the previous sequential month