|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mpxj.DateRange
public final class DateRange
This class represents a period of time.
| Field Summary | |
|---|---|
static DateRange |
EMPTY_RANGE
|
| Constructor Summary | |
|---|---|
DateRange(Date startDate,
Date endDate)
Constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(Date date)
This method compares a target date with a date range. |
int |
compareTo(DateRange o)
|
boolean |
equals(Object o)
|
Date |
getEnd()
Retrieve the date at the end of the range. |
Date |
getStart()
Retrieve the date at the start of the range. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final DateRange EMPTY_RANGE
| Constructor Detail |
|---|
public DateRange(Date startDate,
Date endDate)
startDate - start dateendDate - end date| Method Detail |
|---|
public Date getStart()
public Date getEnd()
public int compareTo(Date date)
date - target date
public int compareTo(DateRange o)
compareTo in interface Comparable<DateRange>public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||