|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(Date begin,
Date end)
|
Method Summary | |
---|---|
static TimePeriod |
createTimePeriod(String isoBegin,
String isoEnd,
String isoDuration)
Create a new TimePeriod. |
boolean |
equals(Object obj)
|
void |
extend(Date samplingTime)
Extend the TimePeriod with the given date. |
void |
extend(SamplingTime samplingTime)
Extend the TimePeriod with the given date. |
Date |
getBegin()
|
Date |
getEnd()
|
int |
hashCode()
|
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(Date begin, Date end)
begin
- end
- Method Detail |
---|
public static TimePeriod createTimePeriod(String isoBegin, String isoEnd, String isoDuration)
If all values are given, the end must be begin+duration.
isoBegin
- iso8601 stringisoEnd
- iso8601 stringisoDuration
- iso8601 duration string
IllegalArgumentException
- if more than one value is null or empty, or if begin, end and duration doesn't matchpublic void extend(Date samplingTime)
samplingTime
- public void extend(SamplingTime samplingTime)
samplingTime
- public Date getBegin()
public Date getEnd()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |