org.geotools.temporal.object
Class DefaultPeriod
java.lang.Object
org.geotools.temporal.object.DefaultTemporalObject
org.geotools.temporal.object.DefaultTemporalPrimitive
org.geotools.temporal.object.DefaultTemporalGeometricPrimitive
org.geotools.temporal.object.DefaultPeriod
- All Implemented Interfaces:
- java.lang.Comparable<org.opengis.temporal.TemporalPrimitive>, org.opengis.temporal.Period, org.opengis.temporal.Separation, org.opengis.temporal.TemporalGeometricPrimitive, org.opengis.temporal.TemporalObject, org.opengis.temporal.TemporalOrder, org.opengis.temporal.TemporalPrimitive
public class DefaultPeriod
- extends DefaultTemporalGeometricPrimitive
- implements org.opengis.temporal.Period
A one-dimensional geometric primitive that represent extent in time.
- Author:
- Mehdi Sidhoum (Geomatys)
Constructor Summary |
DefaultPeriod(org.opengis.temporal.Instant begining,
org.opengis.temporal.Instant ending)
|
Method Summary |
boolean |
equals(java.lang.Object object)
Verify if this entry is identical to the specified object. |
org.opengis.temporal.Instant |
getBeginning()
Links this period to the instant at which it starts. |
org.opengis.temporal.Instant |
getEnding()
Links this period to the instant at which it ends. |
int |
hashCode()
|
void |
setBegining(java.util.Date date)
|
void |
setBegining(org.opengis.temporal.Instant begining)
|
void |
setEnding(java.util.Date date)
|
void |
setEnding(org.opengis.temporal.Instant ending)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.temporal.TemporalOrder |
relativePosition |
Methods inherited from interface org.opengis.temporal.Separation |
distance, length |
DefaultPeriod
public DefaultPeriod(org.opengis.temporal.Instant begining,
org.opengis.temporal.Instant ending)
getBeginning
public org.opengis.temporal.Instant getBeginning()
- Links this period to the instant at which it starts.
- Specified by:
getBeginning
in interface org.opengis.temporal.Period
setBegining
public void setBegining(org.opengis.temporal.Instant begining)
setBegining
public void setBegining(java.util.Date date)
getEnding
public org.opengis.temporal.Instant getEnding()
- Links this period to the instant at which it ends.
- Specified by:
getEnding
in interface org.opengis.temporal.Period
setEnding
public void setEnding(org.opengis.temporal.Instant ending)
setEnding
public void setEnding(java.util.Date date)
equals
public boolean equals(java.lang.Object object)
- Verify if this entry is identical to the specified object.
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1996-2010 Geotools. All Rights Reserved.