com.std.util.range
Class GridMonthRange

java.lang.Object
extended by com.std.util.range.DateRange extended by com.std.util.range.GridMonthRange
All Implemented Interfaces:
java.io.Serializable

public class GridMonthRange
extends DateRange

represents a full month as a range of dates

Author:
xxx
See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
GridMonthRange()
          creates a GridMonthRange representing this month
GridMonthRange(java.util.Date date)
          creates a GridMonthRange representing the month of the given date
 
Method Summary
 java.util.List<WeekRange> getWeeks()
           
 GridMonthRange nextMonth()
           
 GridMonthRange previousMonth()
           
 
Methods inherited from class com.std.util.range.DateRange
equals, getDurationInDays, getDurationInMS, getEndDate, getStartDate, hashCode, setEndDate, setStartDate, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

GridMonthRange

public GridMonthRange()
creates a GridMonthRange representing this month


GridMonthRange

public GridMonthRange(java.util.Date date)
creates a GridMonthRange representing the month of the given date

Parameters:
date - a date in the month to represent
Method Detail

getWeeks

public java.util.List<WeekRange> getWeeks()
Returns:
a list of the 6-weeks representing this month's grid

nextMonth

public GridMonthRange nextMonth()
Returns:
the next sequential month

previousMonth

public GridMonthRange previousMonth()
Returns:
the previous sequential month