|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.protocol.sos.time.TimePeriod
public class TimePeriod
This class represets a time period between to dates. The period can be extended.
| Constructor Summary | |
|---|---|
TimePeriod()
Create an empty TimePeriod. getEnd and getBegin will return null before it is extended the frst
time. |
|
TimePeriod(java.util.Date begin,
java.util.Date end)
|
|
| Method Summary | |
|---|---|
static TimePeriod |
createTimePeriod(java.lang.String isoBegin,
java.lang.String isoEnd,
java.lang.String isoDuration)
Create a new TimePeriod. |
boolean |
equals(java.lang.Object obj)
|
void |
extend(java.util.Date samplingTime)
Extend the TimePeriod with the given date. |
void |
extend(SamplingTime samplingTime)
Extend the TimePeriod with the given date. |
java.util.Date |
getBegin()
|
java.util.Date |
getEnd()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimePeriod()
null before it is extended the frst
time.
public TimePeriod(java.util.Date begin,
java.util.Date end)
begin - end - | Method Detail |
|---|
public static TimePeriod createTimePeriod(java.lang.String isoBegin,
java.lang.String isoEnd,
java.lang.String isoDuration)
If all values are given, the end must be begin+duration.
isoBegin - iso8601 stringisoEnd - iso8601 stringisoDuration - iso8601 duration string
java.lang.IllegalArgumentException - if more than one value is null or empty, or if begin, end and duration doesn't matchpublic void extend(java.util.Date samplingTime)
samplingTime - public void extend(SamplingTime samplingTime)
samplingTime - public java.util.Date getBegin()
public java.util.Date getEnd()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||