com.std.util.range
Class MonthRange

java.lang.Object
extended by com.std.util.range.DateRange extended by 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

Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
MonthRange()
          creates a MonthRange representing this month
MonthRange(java.util.Date date)
          creates a MonthRange representing the month of the given date
 
Method Summary
 MonthRange nextMonth()
           
 MonthRange 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

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
Method Detail

nextMonth

public MonthRange nextMonth()
Returns:
the next sequential month

previousMonth

public MonthRange previousMonth()
Returns:
the previous sequential month