Package org.gvsig.timesupport
Interface AbsoluteInterval
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.
- Version:
- $Id$
- Author:
- gvSIG team
-
Method Summary
Modifier and TypeMethodDescriptionintgetDays()Gets the number of days of this absolute instant.getEnd()Gets the end of this time interval, which is exclusive, as an Instant.getFieldType(int index) Gets the field type at the specified index.intgetHours()Gets the number of hours of this absolute instant.intGets the number of millis of this absolute instant.intGets the number of minutes of this absolute instant.intGets the number of months of this absolute instant.intGets the number of seconds of this absolute instant.getStart()Gets the start of this time interval, which is inclusive, as an Instant.intgetValue(int index) Gets the value at the specified index.intgetYears()Gets the number of years of this absolute instant.booleanisAfter(AbsoluteInterval absoluteInterval) Is this time interval after the specified interval.booleanisBefore(AbsoluteInterval absoluteInterval) Is this time interval before the specified interval.intsize()Gets the number of fields that this absolute interval supports.Methods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.timesupport.Interval
contains, toStandardDurationMethods inherited from interface org.gvsig.timesupport.Time
getChronology, intersects, isAbsolute, isInstant, isInterval, isRelative
-
Method Details
-
getStart
AbsoluteInstant getStart()Gets the start of this time interval, which is inclusive, as an Instant. -
getEnd
AbsoluteInstant getEnd()Gets the end of this time interval, which is exclusive, as an Instant. -
size
int size()Gets the number of fields that this absolute interval supports.- Returns:
- the number of fields supported
-
getFieldType
Gets the field type at the specified index.- Parameters:
index- the index to retrieve- Returns:
- the field at the specified index
-
getValue
int getValue(int index) Gets the value at the specified index.- Parameters:
index- the index to retrieve- Returns:
- the value of the field at the specified index
- Throws:
IndexOutOfBoundsException- if the index is invalid
-
getYears
int getYears()Gets the number of years of this absolute instant.- Returns:
- the number of years
-
getMonths
int getMonths()Gets the number of months of this absolute instant.- Returns:
- the number of months
-
getDays
int getDays()Gets the number of days of this absolute instant.- Returns:
- the number of days
-
getHours
int getHours()Gets the number of hours of this absolute instant.- Returns:
- the number of hours
-
getMinutes
int getMinutes()Gets the number of minutes of this absolute instant.- Returns:
- the number of minutes
-
getSeconds
int getSeconds()Gets the number of seconds of this absolute instant.- Returns:
- the number of seconds
-
getMillis
int getMillis()Gets the number of millis of this absolute instant.- Returns:
- the number of millis
-
isAfter
Is this time interval after the specified interval. Intervals are inclusive of the start instant and exclusive of the end.- Parameters:
absoluteInterval- the insterval to compare to, null means now- Returns:
trueif this time interval is after the absoluteInterval
-
isBefore
Is this time interval before the specified interval. Intervals are inclusive of the start instant and exclusive of the end.- Parameters:
absoluteInterval- the insterval to compare to, null means now- Returns:
trueif this time interval is before the absoluteInterval
-