|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.utilities.time.interval.Interval
org.hackystat.utilities.time.interval.MonthInterval
public class MonthInterval
Provides month interval type.
Constructor Summary | |
---|---|
MonthInterval(java.lang.String startYear,
java.lang.String startMonth,
java.lang.String endYear,
java.lang.String endMonth)
Creates a MonthInterval object with start month and end month. |
|
MonthInterval(javax.xml.datatype.XMLGregorianCalendar startMonth,
javax.xml.datatype.XMLGregorianCalendar endMonth)
Creates a MonthInterval object with start month and end month. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
Month |
getEndMonth()
Gets the end month. |
Month |
getStartMonth()
Gets start month. |
int |
hashCode()
Gets the hash code. |
java.util.Iterator<Month> |
iterator()
Gets the iterator over the month interval. |
java.lang.String |
toString()
String representation of the MonthInterval object. |
Methods inherited from class org.hackystat.utilities.time.interval.Interval |
---|
getIntervalType, isDailyInterval, isMonthlyInterval, isWeeklyInterval |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MonthInterval(java.lang.String startYear, java.lang.String startMonth, java.lang.String endYear, java.lang.String endMonth) throws IllegalIntervalException
startYear
- Start year.startMonth
- Start month.endYear
- End year.endMonth
- End month.
IllegalIntervalException
- If try to create an interval with invalid period.public MonthInterval(javax.xml.datatype.XMLGregorianCalendar startMonth, javax.xml.datatype.XMLGregorianCalendar endMonth) throws IllegalIntervalException
startMonth
- Start month.endMonth
- End month.
IllegalIntervalException
- If try to create an interval with invalid period.Method Detail |
---|
public Month getStartMonth()
public Month getEndMonth()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<Month> iterator()
iterator
in interface java.lang.Iterable<Month>
iterator
in class Interval
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Another instance of DayInterval
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |