public interface AbsoluteInterval extends Interval, Cloneable
Is defined like an interval between two absolute instants.
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 |
---|---|
int |
getDays()
Gets the number of days of this absolute instant.
|
AbsoluteInstant |
getEnd()
Gets the end of this time interval, which is exclusive, as an Instant.
|
AbsoluteIntervalType |
getFieldType(int index)
Gets the field type at the specified index.
|
int |
getHours()
Gets the number of hours of this absolute instant.
|
int |
getMillis()
Gets the number of millis of this absolute instant.
|
int |
getMinutes()
Gets the number of minutes of this absolute instant.
|
int |
getMonths()
Gets the number of months of this absolute instant.
|
int |
getSeconds()
Gets the number of seconds of this absolute instant.
|
AbsoluteInstant |
getStart()
Gets the start of this time interval, which is inclusive, as an Instant.
|
int |
getValue(int index)
Gets the value at the specified index.
|
int |
getYears()
Gets the number of years of this absolute instant.
|
boolean |
isAfter(AbsoluteInterval absoluteInterval)
Is this time interval after the specified interval.
|
boolean |
isBefore(AbsoluteInterval absoluteInterval)
Is this time interval before the specified interval.
|
int |
size()
Gets the number of fields that this absolute interval supports.
|
contains, toStandardDuration
getChronology, intersects, isAbsolute, isInstant, isInterval, isRelative
clone, cloneQuietly, cloneQuietly
AbsoluteInstant getStart()
AbsoluteInstant getEnd()
int size()
AbsoluteIntervalType getFieldType(int index)
index
- the index to retrieveint getValue(int index)
index
- the index to retrievejava.lang.IndexOutOfBoundsException
- if the index is invalidint getYears()
int getMonths()
int getDays()
int getHours()
int getMinutes()
int getSeconds()
int getMillis()
boolean isAfter(AbsoluteInterval absoluteInterval)
absoluteInterval
- the insterval to compare to, null means nowtrue
if this time interval is after the absoluteIntervalboolean isBefore(AbsoluteInterval absoluteInterval)
absoluteInterval
- the insterval to compare to, null means nowtrue
if this time interval is before the absoluteInterval