Interface AbsoluteInterval

All Superinterfaces:
Cloneable, org.gvsig.tools.lang.Cloneable, Interval, Time

public interface AbsoluteInterval extends Interval, org.gvsig.tools.lang.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.

Version:
$Id$
Author:
gvSIG team
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the number of days of this absolute instant.
    Gets the end of this time interval, which is exclusive, as an Instant.
    getFieldType(int index)
    Gets the field type at the specified index.
    int
    Gets the number of hours of this absolute instant.
    int
    Gets the number of millis of this absolute instant.
    int
    Gets the number of minutes of this absolute instant.
    int
    Gets the number of months of this absolute instant.
    int
    Gets the number of seconds of this absolute instant.
    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
    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
    Gets the number of fields that this absolute interval supports.

    Methods inherited from interface org.gvsig.tools.lang.Cloneable

    clone

    Methods inherited from interface org.gvsig.timesupport.Interval

    contains, toStandardDuration

    Methods 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.
      Specified by:
      getStart in interface Interval
      Returns:
      the start of the time interval
    • getEnd

      AbsoluteInstant getEnd()
      Gets the end of this time interval, which is exclusive, as an Instant.
      Specified by:
      getEnd in interface Interval
      Returns:
      the end of the time interval
    • size

      int size()
      Gets the number of fields that this absolute interval supports.
      Returns:
      the number of fields supported
    • getFieldType

      AbsoluteIntervalType getFieldType(int index)
      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

      boolean isAfter(AbsoluteInterval absoluteInterval)
      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:
      true if this time interval is after the absoluteInterval
    • isBefore

      boolean isBefore(AbsoluteInterval absoluteInterval)
      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:
      true if this time interval is before the absoluteInterval