public class MonthSpan extends Object
| Constructor and Description |
|---|
MonthSpan(int year, int month, int numMonths)
Create a new span of months with the specified bounds.
|
MonthSpan(org
Create a new span of months with the specified bounds.
|
MonthSpan(org
Create a new span of months with the specified bounds.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(org
|
org |
getEnd()
|
org |
getStart()
|
boolean |
isEmpty()
|
Iterable |
iterateMonths()
|
int |
length()
|
org |
toInterval()
|
public MonthSpan(org.joda .time .YearMonth limitLower, org .joda .time .YearMonth limitUpper)
limitLower - the lower limit, inclusive
limitUpper - the upper limit, exclusive
public MonthSpan(org.joda .time .YearMonth limitLower, int numMonths)
limitLower - the lower limit, inclusive
numMonths - the number of months to span
public MonthSpan(int year,
int month,
int numMonths)
year - the year of the first month
month - the month of year of the first month
numMonths - the number of months to span
public boolean contains(org.joda .time .YearMonth month)
public org.joda .time .Interval toInterval()
public boolean isEmpty()
public int length()
public org.joda .time .YearMonth getStart()
public org.joda .time .YearMonth getEnd()
public Iterable<org .joda .time .YearMonth > iterateMonths()