Package org.geotools.temporal.object
Class DefaultInstant
- All Implemented Interfaces:
Comparable<TemporalPrimitive>,Instant,Separation,TemporalGeometricPrimitive,TemporalObject,TemporalOrder,TemporalPrimitive
A zero-dimensional geometric primitive that represents position in time, equivalent to a point in space.
- Author:
- Mehdi Sidhoum (Geomatys)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanVerify if this entry is identical to the specified object.Get the Collection of temporalPeriods, for which this Instant is the beginning.Get the Collection of temporalPeriods, for which this Instant is the end.Get the position of this instant.inthashCode()voidsetBegunBy(Collection<Period> begunBy) voidsetEndBy(Collection<Period> endBy) voidsetPosition(Position position) toString()Methods inherited from class DefaultTemporalGeometricPrimitive
distance, lengthMethods inherited from class DefaultTemporalPrimitive
compareTo, relativePositionMethods inherited from interface Separation
distance, lengthMethods inherited from interface TemporalOrder
relativePosition
-
Constructor Details
-
DefaultInstant
-
-
Method Details
-
getPosition
Get the position of this instant.- Specified by:
getPositionin interfaceInstant
-
getBegunBy
Get the Collection of temporalPeriods, for which this Instant is the beginning. The collection may be empty.- Specified by:
getBegunByin interfaceInstant- See Also:
-
Period#begin
-
getEndedBy
Get the Collection of temporalPeriods, for which this Instant is the end. The collection may be empty.- Specified by:
getEndedByin interfaceInstant- See Also:
-
Period#end
-
setPosition
-
setBegunBy
-
setEndBy
-
equals
Verify if this entry is identical to the specified object. -
hashCode
public int hashCode() -
toString
-