Package org.gvsig.timesupport
Interface Instant
- All Superinterfaces:
Time
- All Known Subinterfaces:
AbsoluteInstant,EditableRelativeInstant,RelativeInstant
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.
- Version:
- $Id$
- Author:
- gvSIG Team
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIs this instant after the instant passed in comparing solely by millisecond.booleanIs this instant before the instant passed in comparing solely by millisecond.booleanIs this instant equal to the instant passed in comparing solely by millisecond.Output the instant using the specified format pattern.Methods inherited from interface org.gvsig.timesupport.Time
getChronology, intersects, isAbsolute, isInstant, isInterval, isRelative
-
Method Details
-
isEqual
Is this instant equal to the instant passed in comparing solely by millisecond.- Parameters:
instant- an instant to check against, null means now- Returns:
trueif the instant is equal to the instant passed in
-
isAfter
Is this instant after the instant passed in comparing solely by millisecond.- Parameters:
instant- an instant to check against, null means now- Returns:
trueif the instant is after the instant passed in
-
isBefore
Is this instant before the instant passed in comparing solely by millisecond.- Parameters:
instant- an instant to check against, null means now- Returns:
trueif the instant is before the instant passed in
-
toString
Output the instant using the specified format pattern.- Parameters:
pattern- the pattern specification, null means usetoString
-