public interface Instant extends Time
An Instant represents a position in a time scale. In practice, an instant is an interval whose duration is less than the resolution of the time scale.
All the Instant subclasses have to be immutable and have to provide a Chronology as well. All standard Chronology classes are also immutable.
A huge part of the documentation of this class has been retrieved from the joda-time library.
http://joda-time.sourceforge.net
,
https://gvsig.org/web/projects/gvsig-desktop/docs/devel/org-gvsig-sensors/1-0.0/analysis-and-design/detailed-view/time-support/libraries/org-gvsig-timesupport-lib
Modifier and Type | Method and Description |
---|---|
boolean |
isAfter(Instant instant)
Is this instant after the instant passed in comparing solely by millisecond.
|
boolean |
isBefore(Instant instant)
Is this instant before the instant passed in comparing solely by millisecond.
|
boolean |
isEqual(Instant instant)
Is this instant equal to the instant passed in comparing solely by millisecond.
|
getChronology, intersects, isAbsolute, isInstant, isInterval, isRelative
boolean isEqual(Instant instant)
instant
- an instant to check against, null means nowtrue
if the instant is equal to the instant passed inboolean isAfter(Instant instant)
instant
- an instant to check against, null means nowtrue
if the instant is after the instant passed inboolean isBefore(Instant instant)
instant
- an instant to check against, null means nowtrue
if the instant is before the instant passed in