Package org.geotools.temporal.object
Class DefaultPeriod
-
- All Implemented Interfaces:
Comparable<TemporalPrimitive>
,Period
,Separation
,TemporalGeometricPrimitive
,TemporalObject
,TemporalOrder
,TemporalPrimitive
public class DefaultPeriod extends DefaultTemporalGeometricPrimitive implements Period
A one-dimensional geometric primitive that represent extent in time.- Author:
- Mehdi Sidhoum (Geomatys)
-
-
Constructor Summary
Constructors Constructor Description DefaultPeriod(Instant begining, Instant ending)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Verify if this entry is identical to the specified object.Instant
getBeginning()
Links this period to the instant at which it starts.Instant
getEnding()
Links this period to the instant at which it ends.int
hashCode()
void
setBegining(Date date)
void
setBegining(Instant begining)
void
setEnding(Date date)
void
setEnding(Instant ending)
String
toString()
-
Methods inherited from class DefaultTemporalGeometricPrimitive
distance, length
-
Methods inherited from class DefaultTemporalPrimitive
compareTo, relativePosition
-
Methods inherited from interface Separation
distance, length
-
Methods inherited from interface TemporalOrder
relativePosition
-
-
-
-
Method Detail
-
getBeginning
public Instant getBeginning()
Links this period to the instant at which it starts.- Specified by:
getBeginning
in interfacePeriod
-
setBegining
public void setBegining(Instant begining)
-
setBegining
public void setBegining(Date date)
-
getEnding
public Instant getEnding()
Links this period to the instant at which it ends.
-
setEnding
public void setEnding(Instant ending)
-
setEnding
public void setEnding(Date date)
-
equals
public boolean equals(Object object)
Verify if this entry is identical to the specified object.
-
-