Package org.geotools.temporal.object
Class DefaultInstant
-
- All Implemented Interfaces:
Comparable<TemporalPrimitive>,Instant,Separation,TemporalGeometricPrimitive,TemporalObject,TemporalOrder,TemporalPrimitive
public class DefaultInstant extends DefaultTemporalGeometricPrimitive implements Instant
A zero-dimensional geometric primitive that represents position in time, equivalent to a point in space.- Author:
- Mehdi Sidhoum (Geomatys)
-
-
Constructor Summary
Constructors Constructor Description DefaultInstant(Position position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Verify if this entry is identical to the specified object.Collection<Period>getBegunBy()Get the Collection of temporalPeriods, for which this Instant is the beginning.Collection<Period>getEndedBy()Get the Collection of temporalPeriods, for which this Instant is the end.PositiongetPosition()Get the position of this instant.inthashCode()voidsetBegunBy(Collection<Period> begunBy)voidsetEndBy(Collection<Period> endBy)voidsetPosition(Position position)StringtoString()-
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
-
-
-
-
Constructor Detail
-
DefaultInstant
public DefaultInstant(Position position)
-
-
Method Detail
-
getPosition
public Position getPosition()
Get the position of this instant.- Specified by:
getPositionin interfaceInstant
-
getBegunBy
public Collection<Period> 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
public Collection<Period> 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
public void setPosition(Position position)
-
setBegunBy
public void setBegunBy(Collection<Period> begunBy)
-
setEndBy
public void setEndBy(Collection<Period> endBy)
-
equals
public boolean equals(Object object)
Verify if this entry is identical to the specified object.
-
-